瀏覽代碼

fixed BytesOutput for flash9

Nicolas Cannasse 17 年之前
父節點
當前提交
0046afe9da
共有 2 個文件被更改,包括 3 次插入0 次删除
  1. 2 0
      doc/CHANGES.txt
  2. 1 0
      std/haxe/io/BytesOutput.hx

+ 2 - 0
doc/CHANGES.txt

@@ -23,6 +23,8 @@
 	added flash.VMem API for flash10 alchemy opcodes access
 	changed #if as3gen to #if as3 when generating as3 code
 	fixed as3 flash.Vector generation
+	fixed haxe.io.BytesOutput for flash9 : set default to little-endian
+	some flash9 fixes related to extern enums
 
 2008-10-04: 2.01
 	fixed php.Sys

+ 1 - 0
std/haxe/io/BytesOutput.hx

@@ -35,6 +35,7 @@ class BytesOutput extends Output {
 	public function new() {
 		#if flash9
 		b = new flash.utils.ByteArray();
+		b.endian = flash.utils.Endian.LITTLE_ENDIAN;
 		#else
 		b = new BytesBuffer();
 		#end