diff options
author | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2021-05-03 23:59:20 +0430 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-17 23:25:30 +0200 |
commit | 7fec66dd1cb84392deae09239e680017e378be45 (patch) | |
tree | 8a460af764f5c72872b988e1dd93a42df8968bc3 /Userland/Libraries/LibWasm/AbstractMachine | |
parent | 95b9821f26978d674d39a179b638207138823c16 (diff) | |
download | serenity-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.h | 2 |
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) { |