Skip to content

Commit 96e91cc

Browse files
committed
Fix expression limited loops
1 parent e15870a commit 96e91cc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/backend/functionNode_webgl.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,7 @@ var functionNode_webgl = (function() {
322322
}
323323

324324
if (forNode.test && forNode.test.type == "BinaryExpression") {
325-
console.log(forNode);
326-
if (forNode.test.right.type == "Identifier") {
325+
if (forNode.test.right.type != "Literal") {
327326
retArr.push("for (float ");
328327
ast_generic(forNode.init, retArr, funcParam);
329328
retArr.push(";");

0 commit comments

Comments
 (0)