Explorar o código

add bigEndian assignments again, guarded by #if python

Simon Krajewski %!s(int64=11) %!d(string=hai) anos
pai
achega
2dfc062e76
Modificáronse 2 ficheiros con 6 adicións e 0 borrados
  1. 3 0
      std/haxe/io/BytesInput.hx
  2. 3 0
      std/haxe/io/BytesOutput.hx

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

@@ -55,6 +55,9 @@ class BytesInput extends Input {
 		this.len = len;
 		this.totlen = len;
 		#end
+		#if python
+		bigEndian = false;
+		#end
 	}
 
 	inline function get_position() : Int {

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

@@ -39,6 +39,9 @@ class BytesOutput extends Output {
 		#else
 		b = new BytesBuffer();
 		#end
+		#if python
+		bigEndian = false;
+		#end
 	}
 
 	inline function get_length() : Int {