mirror of
https://github.com/SerenityOS/serenity.git
synced 2026-11-07 04:29:30 -10:00
LibWasm: Fix Negate::name() to return "neg"
Negate was incorrectly returning "== 0", a copy/paste from EqualsZero. This patch corrects it to return "neg", matching the operator's actual semantics and WebAssembly mnemonics (f32.neg, f64.neg). (cherry picked from commit 5f4ad17f89a5c58768251d079321412e97823bfe)
This commit is contained in:
1 parent
2ed0e7ddc7
commit
930cac446a
1 file changed
+1
-1
@@ -547,7 +547,7 @@ struct Negate {
|
||||
return -lhs;
|
||||
}
|
||||
|
||||
static StringView name() { return "== 0"sv; }
|
||||
static StringView name() { return "neg"sv; }
|
||||
};
|
||||
|
||||
struct Ceil {
|
||||
|
||||
Reference in new issue
Block a user