From e3c5ca02fde4282a3797be6ecea5a473ac8c3a1d Mon Sep 17 00:00:00 2001 From: JF Bastien Date: Tue, 22 Dec 2015 13:51:20 -0800 Subject: 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. --- src/wasm-interpreter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wasm-interpreter.h') 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 -- cgit v1.2.3