diff options
Diffstat (limited to 'src/allocator.h')
-rw-r--r-- | src/allocator.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/allocator.h b/src/allocator.h index 56890ebc..e074b4ac 100644 --- a/src/allocator.h +++ b/src/allocator.h @@ -105,7 +105,7 @@ static WASM_INLINE char* wasm_strndup_(WasmAllocator* allocator, real_len++; } - char* new_s = allocator->alloc(allocator, real_len + 1, 1, file, line); + char* new_s = (char*)allocator->alloc(allocator, real_len + 1, 1, file, line); memcpy(new_s, s, real_len); new_s[real_len] = 0; return new_s; |