瀏覽代碼

fix ba should be buf

frabbit 11 年之前
父節點
當前提交
5e51b81fe1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      std/haxe/io/BytesBuffer.hx

+ 1 - 1
std/haxe/io/BytesBuffer.hx

@@ -152,7 +152,7 @@ class BytesBuffer {
 		var bytes = new Bytes(buf.length, buf);
 		#elseif python
 		var buf = python.lib.Builtin.bytearray(b);
-		var bytes = new Bytes(ba.length, buf);
+		var bytes = new Bytes(buf.length, buf);
 		#else
 		var bytes = new Bytes(b.length,b);
 		#end