summaryrefslogtreecommitdiff
path: root/src/binary-reader-interpreter.cc
diff options
context:
space:
mode:
authorBen Smith <binjimin@gmail.com>2017-06-12 16:10:17 -0700
committerGitHub <noreply@github.com>2017-06-12 16:10:17 -0700
commit194fbedf2065cc2ac09a4ead997256a8a8f8894a (patch)
tree472f10d5d4ec335e3adf39a85f49ca73a08a0280 /src/binary-reader-interpreter.cc
parent3377747c3fb159826c5bd6d4a70ee5e167c79552 (diff)
downloadwabt-194fbedf2065cc2ac09a4ead997256a8a8f8894a.tar.gz
wabt-194fbedf2065cc2ac09a4ead997256a8a8f8894a.tar.bz2
wabt-194fbedf2065cc2ac09a4ead997256a8a8f8894a.zip
Use CamelCase names and member functions in ir.h (#492)
* Remove destroy_var; use destructor instead * Add Var copy/move constructor/assignment operator.
Diffstat (limited to 'src/binary-reader-interpreter.cc')
-rw-r--r--src/binary-reader-interpreter.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/binary-reader-interpreter.cc b/src/binary-reader-interpreter.cc
index c912ba51..52fcc32e 100644
--- a/src/binary-reader-interpreter.cc
+++ b/src/binary-reader-interpreter.cc
@@ -649,7 +649,7 @@ wabt::Result BinaryReaderInterpreter::AppendExport(Module* module,
ExternalKind kind,
Index item_index,
StringSlice name) {
- if (module->export_bindings.FindIndex(name) != -1) {
+ if (module->export_bindings.FindIndex(name) != kInvalidIndex) {
PrintError("duplicate export \"" PRIstringslice "\"",
WABT_PRINTF_STRING_SLICE_ARG(name));
return wabt::Result::Error;