Explorar el Código

[js] fix the size of haxe.io.Int32Array upon creation (#8394)

Aleksandr Kuzmenko hace 6 años
padre
commit
b008fb4558
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      std/js/_std/haxe/io/Int32Array.hx

+ 1 - 1
std/js/_std/haxe/io/Int32Array.hx

@@ -31,7 +31,7 @@ abstract Int32Array(Int32ArrayData) {
 	public var view(get,never) : ArrayBufferView;
 
 	public inline function new( elements : Int ) {
-		this = new Int32ArrayData(elements * BYTES_PER_ELEMENT);
+		this = new Int32ArrayData(elements);
 	}
 
 	inline function get_length() : Int {