summaryrefslogtreecommitdiff
path: root/src/wasm-interpreter.h
diff options
context:
space:
mode:
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