Explorar o código

fixed "push" return value

Nicolas Cannasse %!s(int64=16) %!d(string=hai) anos
pai
achega
9b39b9d566
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      std/neko/NekoArray__.hx

+ 1 - 1
std/neko/NekoArray__.hx

@@ -135,7 +135,7 @@ class NekoArray__<T> implements Array<T> {
 			var l = this.length;
 			this.__double(l + 1);
 			this.__a[l] = v;
-			return l;
+			return l + 1;
 		}
 	}