mirror of
https://github.com/gpujs/gpu.js.git
synced 2026-01-25 16:08:02 +00:00
Fix expression limited loops
This commit is contained in:
parent
e15870a28e
commit
96e91ccec3
@ -322,8 +322,7 @@ var functionNode_webgl = (function() {
|
||||
}
|
||||
|
||||
if (forNode.test && forNode.test.type == "BinaryExpression") {
|
||||
console.log(forNode);
|
||||
if (forNode.test.right.type == "Identifier") {
|
||||
if (forNode.test.right.type != "Literal") {
|
||||
retArr.push("for (float ");
|
||||
ast_generic(forNode.init, retArr, funcParam);
|
||||
retArr.push(";");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user