Browse Source

fix Bytes.toString() for flash (#6218)

Alexander Kuzmenko 8 years ago
parent
commit
b92976545d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/haxe/io/Bytes.hx

+ 1 - 1
std/haxe/io/Bytes.hx

@@ -425,7 +425,7 @@ class Bytes {
 		return new String(untyped __dollar__ssub(b,0,length));
 		return new String(untyped __dollar__ssub(b,0,length));
 		#elseif flash
 		#elseif flash
 		b.position = 0;
 		b.position = 0;
-		return b.readUTFBytes(length);
+		return b.toString();
 		#elseif php
 		#elseif php
 		return b.toString();
 		return b.toString();
 		#elseif cs
 		#elseif cs