Browse Source

Fix for index outside the bounds.

tags/v0.1.0
Rafal Kupiec 1 year ago
parent
commit
a09c6b3fad
Signed by: belliash <belliash@codingworkshop.eu.org> GPG Key ID: 4E829243E0CFE6B4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tests/goto_statement.aer

+ 1
- 1
tests/goto_statement.aer View File

@@ -50,7 +50,7 @@ class Test {
print($headers[$pos], "\n");
cIterator: {
print(" ", $headers[$pos][$c], "\n");
if(!($headers[$pos][++$c])) {
if(strlen($headers[$pos]) <= ++$c) {
goto cIteratorExit;
}
goto cIterator;


Loading…
Cancel
Save