summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWasm/AbstractMachine
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2021-05-03 23:59:20 +0430
committerAndreas Kling <kling@serenityos.org>2021-05-17 23:25:30 +0200
commit7fec66dd1cb84392deae09239e680017e378be45 (patch)
tree8a460af764f5c72872b988e1dd93a42df8968bc3 /Userland/Libraries/LibWasm/AbstractMachine
parent95b9821f26978d674d39a179b638207138823c16 (diff)
downloadserenity-7fec66dd1cb84392deae09239e680017e378be45.zip
LibWasm: Make clang happy by removing an 'extra' set of parenthesis
These aren't actually an extra set, without them the fold operation would be syntactically invalid. Also remove possible cast of float->double/double->float in Value::to()
Diffstat (limited to 'Userland/Libraries/LibWasm/AbstractMachine')
-rw-r--r--Userland/Libraries/LibWasm/AbstractMachine/AbstractMachine.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWasm/AbstractMachine/AbstractMachine.h b/Userland/Libraries/LibWasm/AbstractMachine/AbstractMachine.h
index 4f6169c2fa..94f5e29ce9 100644
--- a/Userland/Libraries/LibWasm/AbstractMachine/AbstractMachine.h
+++ b/Userland/Libraries/LibWasm/AbstractMachine/AbstractMachine.h
@@ -102,7 +102,7 @@ public:
Optional<T> result;
m_value.visit(
[&](auto value) {
- if constexpr (!IsSame<T, FunctionAddress> && !IsSame<T, ExternAddress>)
+ if constexpr (IsSame<T, decltype(value)>)
result = value;
},
[&](const FunctionAddress& address) {