From a1e692eac73fbf44f1fbf816832aaae0ea8f04d7 Mon Sep 17 00:00:00 2001 From: Jakub Doka Date: Mon, 16 Dec 2024 14:06:12 +0100 Subject: [PATCH] maybe fixed the float op fold Signed-off-by: Jakub Doka --- lang/src/son.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/src/son.rs b/lang/src/son.rs index 764d874..5e7712d 100644 --- a/lang/src/son.rs +++ b/lang/src/son.rs @@ -966,7 +966,7 @@ impl Nodes { }; let ty = self[target].ty; - let is_float = self[lhs].ty.is_float(); + let is_float = self[target].ty.is_float(); if let (&K::CInt { value: a }, &K::CInt { value: b }) = (&self[lhs].kind, &self[rhs].kind)