Procházet zdrojové kódy

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

Alexander Kuzmenko před 8 roky
rodič
revize
b92976545d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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