darknesswind / NutCracker

fork from DamianXVI's squirrel decompiler
22 stars 11 forks source link

NutCracker fails to decompile for loops without condition expressions #27

Open AdamMil opened 5 years ago

AdamMil commented 5 years ago

Compile the following code:

for(;;) i++;

and then decompile it. The result is:

local i;
i++;
// [002]  OP_JMP            0     -2    0    0

NutCracker doesn't realize that it's in a loop.