Browse Source

[python] dodge postfix increment generation issue in BytesInput.readByte

see https://github.com/HaxeFoundation/haxe/issues/5080#issuecomment-506871453
Dan Korostelev 6 years ago
parent
commit
1262597513
1 changed files with 4 additions and 0 deletions
  1. 4 0
      std/haxe/io/BytesInput.hx

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

@@ -100,6 +100,10 @@ class BytesInput extends Input {
 			return untyped b[pos++];
 			#elseif java
 			return untyped b[pos++] & 0xFF;
+			#elseif python // dodge https://github.com/HaxeFoundation/haxe/issues/5080
+			var b = b[pos];
+			pos++;
+			return b;
 			#else
 			return b[pos++];
 			#end