Skip to content

Commit 1474a8d

Browse files
committed
msvc fix: error C2036: 'void *': unknown size
1 parent a426b7d commit 1474a8d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

core/iwasm/interpreter/wasm_loader.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5604,8 +5604,8 @@ read_code_metadata_section(const uint8 *buf, const uint8 *buf_end,
56045604

56055605
uint32 num_hints;
56065606
read_leb_uint32(buf, buf_end, num_hints);
5607-
void *new_hints = loader_malloc(hint_struct_size * num_hints, error_buf,
5608-
error_buf_size);
5607+
struct WASMCompilationHint *new_hints = loader_malloc(
5608+
hint_struct_size * num_hints, error_buf, error_buf_size);
56095609
for (uint32 j = 0; j < num_hints; ++j) {
56105610
struct WASMCompilationHint *new_hint =
56115611
new_hints + j * hint_struct_size;

0 commit comments

Comments
 (0)