diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-12-22 14:03:21 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-12-22 14:03:21 -0800 |
commit | 89972f57fc1d98a2990a635878df39867d1f98f9 (patch) | |
tree | acc8af2fa4cc19441c5d5459661d6040074a1e6c /src/wasm-interpreter.h | |
parent | 58cb71723a5243f8a347e51e9ceb20b664719585 (diff) | |
parent | 397ddb4bbced30b96d6f05dddaea6a395269cf34 (diff) | |
download | binaryen-89972f57fc1d98a2990a635878df39867d1f98f9.tar.gz binaryen-89972f57fc1d98a2990a635878df39867d1f98f9.tar.bz2 binaryen-89972f57fc1d98a2990a635878df39867d1f98f9.zip |
Merge pull request #28 from WebAssembly/wall
Fix warnings found by GCC
Diffstat (limited to 'src/wasm-interpreter.h')
-rw-r--r-- | src/wasm-interpreter.h | 2 |
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 |