Nicolas Cannasse 16 years ago
parent
commit
e943232504
1 changed files with 2 additions and 5 deletions
  1. 2 5
      std/haxe/io/BytesInput.hx

+ 2 - 5
std/haxe/io/BytesInput.hx

@@ -71,11 +71,8 @@ class BytesInput extends Input {
 	}
 
 	public override function readBytes( buf : Bytes, pos, len ) : Int {
-		#if php
-			if( pos < 0 || len < 0 || pos + len > untyped __call__("strlen", b))
-				throw Error.OutsideBounds;
-		#elseif !neko
-			if( pos < 0 || len < 0 || pos + len > b.length )
+		#if !neko
+			if( pos < 0 || len < 0 || pos + len > buf.length )
 				throw Error.OutsideBounds;
 		#end
 		#if flash9