From 25f189ffdbd953f7799ad98ea2d62fc822e54728 Mon Sep 17 00:00:00 2001 From: Ben Smith Date: Fri, 24 Feb 2017 10:45:40 -0800 Subject: Change NULL -> nullptr (#315) Also switch to using C++11. --- src/binary-reader-interpreter.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/binary-reader-interpreter.cc') diff --git a/src/binary-reader-interpreter.cc b/src/binary-reader-interpreter.cc index b325e1f3..ceff1454 100644 --- a/src/binary-reader-interpreter.cc +++ b/src/binary-reader-interpreter.cc @@ -1044,7 +1044,7 @@ static WabtResult end_function_body(uint32_t index, void* user_data) { CHECK_RESULT(emit_drop_keep(ctx, drop_count, keep_count)); CHECK_RESULT(emit_opcode(ctx, WABT_OPCODE_RETURN)); pop_label(ctx); - ctx->current_func = NULL; + ctx->current_func = nullptr; return WABT_OK; } @@ -1578,7 +1578,7 @@ WabtResult wabt_read_binary_interpreter(WabtInterpreterEnvironment* env, *out_module = module; } else { wabt_reset_interpreter_environment_to_mark(env, mark); - *out_module = NULL; + *out_module = nullptr; } destroy_context(&ctx); return result; -- cgit v1.2.3