Explorar el Código

fixed "push" return value

Nicolas Cannasse hace 16 años
padre
commit
9b39b9d566
Se han modificado 1 ficheros con 1 adiciones y 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;
 		}
 	}