Explorar o código

initialize bigEndian

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

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

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

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

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