summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2019-11-18 16:26:40 -0800
committerGitHub <noreply@github.com>2019-11-18 16:26:40 -0800
commitee3022fd3be7ba0b9e7a12e426a8246134134cc4 (patch)
tree205347110ebdd32fd8fb200a51d360a9287f2195 /src
parentaf5ebec502f0055889ef1cf7bf6ce37d54c7b64e (diff)
downloadbinaryen-ee3022fd3be7ba0b9e7a12e426a8246134134cc4.tar.gz
binaryen-ee3022fd3be7ba0b9e7a12e426a8246134134cc4.tar.bz2
binaryen-ee3022fd3be7ba0b9e7a12e426a8246134134cc4.zip
Fix #2430 properly (#2449)
Diffstat (limited to 'src')
-rw-r--r--src/wasm-features.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/wasm-features.h b/src/wasm-features.h
index 77759f9e8..c9496bb42 100644
--- a/src/wasm-features.h
+++ b/src/wasm-features.h
@@ -67,18 +67,18 @@ struct FeatureSet {
bool isMVP() const { return features == MVP; }
bool has(Feature f) { return (features & f) == f; }
- bool hasAtomics() const { return bool(features & Atomics); }
- bool hasMutableGlobals() const { return bool(features & MutableGlobals); }
- bool hasTruncSat() const { return bool(features & TruncSat); }
- bool hasSIMD() const { return bool(features & SIMD); }
- bool hasBulkMemory() const { return bool(features & BulkMemory); }
- bool hasSignExt() const { return bool(features & SignExt); }
+ bool hasAtomics() const { return (features & Atomics) != 0; }
+ bool hasMutableGlobals() const { return (features & MutableGlobals) != 0; }
+ bool hasTruncSat() const { return (features & TruncSat) != 0; }
+ bool hasSIMD() const { return (features & SIMD) != 0; }
+ bool hasBulkMemory() const { return (features & BulkMemory) != 0; }
+ bool hasSignExt() const { return (features & SignExt) != 0; }
bool hasExceptionHandling() const {
- return bool(features & ExceptionHandling);
+ return (features & ExceptionHandling) != 0;
}
- bool hasTailCall() const { return bool(features & TailCall); }
- bool hasReferenceTypes() const { return bool(features & ReferenceTypes); }
- bool hasAll() const { return bool(features & All); }
+ bool hasTailCall() const { return (features & TailCall) != 0; }
+ bool hasReferenceTypes() const { return (features & ReferenceTypes) != 0; }
+ bool hasAll() const { return (features & All) != 0; }
void makeMVP() { features = MVP; }
void set(Feature f, bool v = true) {