2
0
Nicolas Cannasse 19 жил өмнө
parent
commit
7ddd034d1d

+ 1 - 1
std/Array.hx

@@ -63,7 +63,7 @@ extern class Array<T> {
 	/**
 	/**
 		Reverse the order of elements of the Array.
 		Reverse the order of elements of the Array.
 	**/
 	**/
-	function reverse() : Array<T>;
+	function reverse() : Void;
 
 
 	/**
 	/**
 		Removes the first element and returns it.
 		Removes the first element and returns it.

+ 1 - 2
std/neko/NekoArray__.hx

@@ -169,7 +169,7 @@ class NekoArray__<T> implements Array<T> {
 		untyped {
 		untyped {
 			var i = 0;
 			var i = 0;
 			var l = this.length;
 			var l = this.length;
-			var a = __dollar__asub(this.__a,0,l);
+			var a = this.__a;
 			var half = __dollar__int(l / 2);
 			var half = __dollar__int(l / 2);
 			l -= 1;
 			l -= 1;
 			while( i < half ) {
 			while( i < half ) {
@@ -178,7 +178,6 @@ class NekoArray__<T> implements Array<T> {
 				a[l-i] = tmp;
 				a[l-i] = tmp;
 				i += 1;
 				i += 1;
 			}
 			}
-			return Array.new1(a,l+1);
 		}
 		}
 	}
 	}