Explorar o código

Nodes: OperatorNode - Maintain Variable Types In Comparison (#29194)

Christian Helgeson hai 1 ano
pai
achega
710aa87a72
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/nodes/math/OperatorNode.js

+ 1 - 1
src/nodes/math/OperatorNode.js

@@ -116,7 +116,7 @@ class OperatorNode extends TempNode {
 
 					typeB = typeA;
 
-				} else {
+				} else if ( typeA !== typeB ) {
 
 					typeA = typeB = 'float';
 

粤ICP备19079148号