forked from starnakin/IronGOLEM
use postfix and variable initialisation
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
strlen(str) {
|
||||
local i;
|
||||
i = 0;
|
||||
local i = 0;
|
||||
|
||||
loop {
|
||||
if ([str + i] == 0)
|
||||
return (i);
|
||||
i = i + 1;
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user