diff options
author | Ben Smith <binjimin@gmail.com> | 2017-02-24 10:45:40 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-24 10:45:40 -0800 |
commit | 25f189ffdbd953f7799ad98ea2d62fc822e54728 (patch) | |
tree | 4aa4668806d818c3a40a2ae1504d61e00c3514cc /src/interpreter.cc | |
parent | b86721bdeb746ff86db73385f449a4af882501b2 (diff) | |
download | wabt-25f189ffdbd953f7799ad98ea2d62fc822e54728.tar.gz wabt-25f189ffdbd953f7799ad98ea2d62fc822e54728.tar.bz2 wabt-25f189ffdbd953f7799ad98ea2d62fc822e54728.zip |
Change NULL -> nullptr (#315)
Also switch to using C++11.
Diffstat (limited to 'src/interpreter.cc')
-rw-r--r-- | src/interpreter.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interpreter.cc b/src/interpreter.cc index 1630c34a..d539bff3 100644 --- a/src/interpreter.cc +++ b/src/interpreter.cc @@ -210,7 +210,7 @@ WabtInterpreterExport* wabt_get_interpreter_export_by_name( int field_index = wabt_find_binding_index_by_name(&module->export_bindings, name); if (field_index < 0) - return NULL; + return nullptr; assert((size_t)field_index < module->exports.size); return &module->exports.data[field_index]; } @@ -1031,7 +1031,7 @@ WabtInterpreterResult wabt_run_interpreter(WabtInterpreterThread* thread, UINT32_MAX); uint32_t new_byte_size = new_page_size * WABT_PAGE_SIZE; void* new_data = wabt_realloc(memory->data, new_byte_size); - PUSH_NEG_1_AND_BREAK_IF(new_data == NULL); + PUSH_NEG_1_AND_BREAK_IF(!new_data); memset((void*)((intptr_t)new_data + old_byte_size), 0, new_byte_size - old_byte_size); memory->data = new_data; |