From 3863c849635030bdd7205e83900aef55ae0fded1 Mon Sep 17 00:00:00 2001 From: Christian Helgeson Date: Tue, 20 Aug 2024 19:03:59 -0700 Subject: [PATCH] maintain type of variables in a comparison operation if the types are the same --- src/nodes/math/OperatorNode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nodes/math/OperatorNode.js b/src/nodes/math/OperatorNode.js index 417b3b55f7bda2..2a65deced0dff1 100644 --- a/src/nodes/math/OperatorNode.js +++ b/src/nodes/math/OperatorNode.js @@ -116,7 +116,7 @@ class OperatorNode extends TempNode { typeB = typeA; - } else { + } else if ( typeA !== typeB ) { typeA = typeB = 'float';