Browse Source

another fix for flash endianness

Nicolas Cannasse 11 years ago
parent
commit
f9f0c26886
1 changed files with 3 additions and 0 deletions
  1. 3 0
      std/haxe/io/Bytes.hx

+ 3 - 0
std/haxe/io/Bytes.hx

@@ -29,6 +29,9 @@ class Bytes {
 	function new(length,b) {
 		this.length = length;
 		this.b = b;
+		#if flash9
+		b.endian = flash.utils.Endian.LITTLE_ENDIAN;
+		#end
 	}
 
 	public inline function get( pos : Int ) : Int {