Преглед на файлове

add bigEndian assignments again, guarded by #if python

Simon Krajewski преди 11 години
родител
ревизия
2dfc062e76
променени са 2 файла, в които са добавени 6 реда и са изтрити 0 реда
  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 {