diff options
Diffstat (limited to 'src/literal.h')
-rw-r--r-- | src/literal.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/literal.h b/src/literal.h index ff50b2e61..9ffa79032 100644 --- a/src/literal.h +++ b/src/literal.h @@ -412,10 +412,12 @@ template<> struct hash<wasm::Literal> { }; template<> struct less<wasm::Literal> { bool operator()(const wasm::Literal& a, const wasm::Literal& b) const { - if (a.type < b.type) + if (a.type < b.type) { return true; - if (a.type > b.type) + } + if (a.type > b.type) { return false; + } switch (a.type) { case wasm::Type::i32: return a.geti32() < b.geti32(); |