diff --git a/lib/ReckiCT/Compiler/PHP/Compiler.php b/lib/ReckiCT/Compiler/PHP/Compiler.php index 0604d16..c0fba97 100644 --- a/lib/ReckiCT/Compiler/PHP/Compiler.php +++ b/lib/ReckiCT/Compiler/PHP/Compiler.php @@ -133,7 +133,7 @@ public function compileInstruction(array $instruction, \StdClass $ctx) $var = $ctx->scope[$instruction[1]]; if (!isset($ctx->labels[$instruction[2]])) { - $ctx->labels[$instruction[2]] = 'label_' . (count($ctx->labels) + 2); + $ctx->labels[$instruction[2]] = 'label_' . (count($ctx->labels) + 1); } $ctx->function .= "if (!" . $var . ") { goto " . $ctx->labels[$instruction[2]] . "; }\n";