summaryrefslogtreecommitdiff
path: root/src/binary-reader-interpreter.cc
diff options
context:
space:
mode:
authorBen Smith <binjimin@gmail.com>2017-06-09 16:09:35 -0700
committerGitHub <noreply@github.com>2017-06-09 16:09:35 -0700
commit5322dbcd2a06c920f59b5a3bc6f01de5fd2af228 (patch)
treef87800aec8261015831c2244ad2c8ac58862084e /src/binary-reader-interpreter.cc
parent155bbc40469570681fec73eca262dbcc05643774 (diff)
downloadwabt-5322dbcd2a06c920f59b5a3bc6f01de5fd2af228.tar.gz
wabt-5322dbcd2a06c920f59b5a3bc6f01de5fd2af228.tar.bz2
wabt-5322dbcd2a06c920f59b5a3bc6f01de5fd2af228.zip
Use C++ callbacks in BindingHash::FindDuplicates (#487)
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 6ddc9f52..c912ba51 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.find_index(name) != -1) {
+ if (module->export_bindings.FindIndex(name) != -1) {
PrintError("duplicate export \"" PRIstringslice "\"",
WABT_PRINTF_STRING_SLICE_ARG(name));
return wabt::Result::Error;