summaryrefslogtreecommitdiff
path: root/src/wasm-interpreter.h
diff options
context:
space:
mode:
authorJF Bastien <jfb@chromium.org>2015-12-22 13:51:20 -0800
committerJF Bastien <jfb@chromium.org>2015-12-22 13:51:20 -0800
commite3c5ca02fde4282a3797be6ecea5a473ac8c3a1d (patch)
tree430845f9b7a4121f876ea5c6e0980a760a597c03 /src/wasm-interpreter.h
parent4726dcfd02ca4bea786fe4b6ef4629e3e2a1561d (diff)
downloadbinaryen-e3c5ca02fde4282a3797be6ecea5a473ac8c3a1d.tar.gz
binaryen-e3c5ca02fde4282a3797be6ecea5a473ac8c3a1d.tar.bz2
binaryen-e3c5ca02fde4282a3797be6ecea5a473ac8c3a1d.zip
Fix warnings found by GCC
My previous patch addressed all LLVM warnings, this one addresses all the GCC ones as well (mostly signed / unsigned mix). The patch also turns on -Wall -Werror.
Diffstat (limited to 'src/wasm-interpreter.h')
-rw-r--r--src/wasm-interpreter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm-interpreter.h b/src/wasm-interpreter.h
index 94077c00a..185e920ca 100644
--- a/src/wasm-interpreter.h
+++ b/src/wasm-interpreter.h
@@ -248,7 +248,7 @@ private:
NOTE_EVAL1(flow.value);
int64_t index = flow.value.getInteger();
Name target = curr->default_;
- if (index >= 0 && index < curr->targets.size()) {
+ if (index >= 0 && (size_t)index < curr->targets.size()) {
target = curr->targets[index];
}
// This is obviously very inefficient. This should be a cached data structure