Przeglądaj źródła

add bigEndian assignments again, guarded by #if python

Simon Krajewski 11 lat temu
rodzic
commit
2dfc062e76
2 zmienionych plików z 6 dodań i 0 usunięć
  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.len = len;
 		this.totlen = len;
 		this.totlen = len;
 		#end
 		#end
+		#if python
+		bigEndian = false;
+		#end
 	}
 	}
 
 
 	inline function get_position() : Int {
 	inline function get_position() : Int {

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

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