Aurel 6 years ago
parent
commit
dba07f3ac7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      std/python/io/NativeTextInput.hx

+ 2 - 2
std/python/io/NativeTextInput.hx

@@ -41,11 +41,11 @@ class NativeTextInput extends NativeInput<TextIOBase> implements IInput {
 
 
 	override public function readByte():Int
 	override public function readByte():Int
 	{
 	{
-		var ret = stream.read(1);
+		var ret = stream.buffer.read(1);
 
 
 		if (ret.length == 0) throwEof();
 		if (ret.length == 0) throwEof();
 
 
-		return ret.charCodeAt(0);
+		return ret[0];
 	}
 	}
 
 
 	override public function seek( p : Int, pos : sys.io.FileSeek ) : Void
 	override public function seek( p : Int, pos : sys.io.FileSeek ) : Void