summaryrefslogtreecommitdiff
path: root/src/allocator.h
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@chromium.org>2017-01-05 13:29:15 -0800
committerGitHub <noreply@github.com>2017-01-05 13:29:15 -0800
commitce155764645df932b0baaa8c1efebbd31bb3ea08 (patch)
tree45face4bcb15bfbf110063949ea6deb9c1b81d74 /src/allocator.h
parentdc8b34ffae06d51d1a16e65ba01982f0b92fd59d (diff)
downloadwabt-ce155764645df932b0baaa8c1efebbd31bb3ea08.tar.gz
wabt-ce155764645df932b0baaa8c1efebbd31bb3ea08.tar.bz2
wabt-ce155764645df932b0baaa8c1efebbd31bb3ea08.zip
Add extra casts in headers to remove warnings when building in C++ mode (#265)
Diffstat (limited to 'src/allocator.h')
-rw-r--r--src/allocator.h2
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;