소스 검색

optimized (in that case constructor can be inlined)

ncannasse 12 년 전
부모
커밋
0e9ce3104a
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      hxd/FloatBuffer.hx
  2. 1 1
      hxd/IndexBuffer.hx

+ 1 - 1
hxd/FloatBuffer.hx

@@ -8,7 +8,7 @@ private class InnerIterator {
 	var pos : Int;
 	public inline function new( b : InnerData )  {
 		this.b = b;
-		this.len = b.length;
+		this.len = this.b.length;
 		this.pos = 0;
 	}
 	public inline function hasNext() {

+ 1 - 1
hxd/IndexBuffer.hx

@@ -8,7 +8,7 @@ private class InnerIterator {
 	var pos : Int;
 	public inline function new( b : InnerData )  {
 		this.b = b;
-		this.len = b.length;
+		this.len = this.b.length;
 		this.pos = 0;
 	}
 	public inline function hasNext() {