Nicolas Cannasse 8 年 前
コミット
27eedc3f6d
1 ファイル変更2 行追加1 行削除
  1. 2 1
      hxd/FloatBuffer.hx

+ 2 - 1
hxd/FloatBuffer.hx

@@ -46,7 +46,8 @@ abstract FloatBuffer(InnerData) {
 		#if flash
 		if( v > this.length ) this.length = v;
 		#elseif js
-		while( v < this.length ) this.push(0.);
+		for( i in this.length...v )
+			this.push(0.);
 		#else
 		if( v > this.length ) this[v - 1] = 0.;
 		#end