summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2016-03-28 15:16:49 +0300
committerJukka Jylänki <jujjyl@gmail.com>2016-03-28 21:40:23 +0300
commit432163d499f183ed794f50ec4d38919a169fb80f (patch)
tree0d58c50d2fe39352ed8d7411d0044c88d630d966 /src
parentf5446dfe4d569cf4d3fae0693385620985ab956c (diff)
downloadbinaryen-432163d499f183ed794f50ec4d38919a169fb80f.tar.gz
binaryen-432163d499f183ed794f50ec4d38919a169fb80f.tar.bz2
binaryen-432163d499f183ed794f50ec4d38919a169fb80f.zip
Clean Visual Studio build warning C4800: 'int64_t': forcing value to bool 'true' or 'false' (performance warning).
Diffstat (limited to 'src')
-rw-r--r--src/wasm-binary.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h
index 6782eec21..edc904787 100644
--- a/src/wasm-binary.h
+++ b/src/wasm-binary.h
@@ -43,7 +43,7 @@ struct LEB {
bool hasMore(T temp, MiniT byte) {
// for signed, we must ensure the last bit has the right sign, as it will zero extend
- return isSigned() ? (temp != 0 && int32_t(temp) != -1) || (value >= 0 && (byte & 64)) || (value < 0 && !(byte & 64)): temp;
+ return isSigned() ? (temp != 0 && int32_t(temp) != -1) || (value >= 0 && (byte & 64)) || (value < 0 && !(byte & 64)): (temp != 0);
}
void write(std::vector<uint8_t>* out) {