summaryrefslogtreecommitdiff
path: root/src/option-parser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/option-parser.cc')
-rw-r--r--src/option-parser.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/option-parser.cc b/src/option-parser.cc
index 2afe1d59..db897860 100644
--- a/src/option-parser.cc
+++ b/src/option-parser.cc
@@ -191,7 +191,7 @@ void wabt_print_help(WabtOptionParser* parser, const char* program_name) {
}
size_t buffer_size = longest_name_length + 1;
- char* buffer = (char*)alloca(buffer_size);
+ char* buffer = static_cast<char*>(alloca(buffer_size));
for (i = 0; i < parser->num_options; ++i) {
WabtOption* option = &parser->options[i];