test: fix some errors in "compile C as C++"

This commit is contained in:
Nigel Tao committed 2023-06-20 17:25:56 +10:00
1 parent e7df7cafac
commit 38205517d4
6 files changed
+73 -63

No files matched your search

+2 -2
View File
@@ -541,9 +541,9 @@ test_wuffs_upsample_inv_h2v1() {
const bool closed = true;
wuffs_base__io_buffer have = wuffs_base__ptr_u8__reader( //
(void*)have_ptr, 32, closed);
(uint8_t*)(void*)have_ptr, 32, closed);
wuffs_base__io_buffer want = wuffs_base__ptr_u8__reader( //
(void*)want_array, 32, closed);
(uint8_t*)(void*)want_array, 32, closed);
return check_io_buffers_equal("", &have, &want);
}