Browse Source

[python] Initialize bigEndian field for NativeInput and NativeOutput (see #4444)

Dan Korostelev 10 years ago
parent
commit
eae150b012
2 changed files with 2 additions and 0 deletions
  1. 1 0
      std/python/io/NativeInput.hx
  2. 1 0
      std/python/io/NativeOutput.hx

+ 1 - 0
std/python/io/NativeInput.hx

@@ -34,6 +34,7 @@ class NativeInput<T:IOBase> extends Input{
 
 
 	function new (s:T) {
 	function new (s:T) {
 		this.stream = s;
 		this.stream = s;
+		this.bigEndian = false;
 		wasEof = false;
 		wasEof = false;
 		if (!stream.readable()) throw "Write-only stream";
 		if (!stream.readable()) throw "Write-only stream";
 	}
 	}

+ 1 - 0
std/python/io/NativeOutput.hx

@@ -33,6 +33,7 @@ class NativeOutput<T:IOBase> extends Output {
 	public var canSeek(get_canSeek, null):Bool;
 	public var canSeek(get_canSeek, null):Bool;
 
 
 	public function new (stream:T) {
 	public function new (stream:T) {
+		this.bigEndian = false;
 		this.stream = stream;
 		this.stream = stream;
 		if (!stream.writable()) throw "Read only stream";
 		if (!stream.writable()) throw "Read only stream";
 	}
 	}