Ver Fonte

[lua] fix StringIterator

Aleksandr Kuzmenko há 5 anos atrás
pai
commit
02d9483d76
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      std/lua/_std/haxe/iterators/StringIterator.hx

+ 1 - 1
std/lua/_std/haxe/iterators/StringIterator.hx

@@ -31,7 +31,7 @@ class StringIterator {
     public inline function new(s:String) {
         this.codes = Utf8.codes(s);
         this.str = s;
-        var cp = codes(str, 1);
+        var cp = codes(str, 0);
         this.codepoint = cp.codepoint;
         this.position = cp.position;
     }