From c93259f03f7ff3c870e760fc04c954e546875885 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 4 Nov 2015 13:55:55 -0800 Subject: fix load sign detection --- src/wasm-s-parser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h index 26acf9bb3..f87a009ae 100644 --- a/src/wasm-s-parser.h +++ b/src/wasm-s-parser.h @@ -483,7 +483,7 @@ private: assert(extra[1] == '6'); extra += 2; } - ret->signed_ = extra[0] != 0; + ret->signed_ = extra[0] && extra[1] == 's'; size_t i = 1; ret->offset = 0; ret->align = -1; -- cgit v1.2.3