ソースを参照

[std] fix weird `untyped` usage

closes #8059
Simon Krajewski 6 年 前
コミット
03c4d620e3
1 ファイル変更3 行追加3 行削除
  1. 3 3
      std/haxe/io/Bytes.hx

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

@@ -189,7 +189,7 @@ class Bytes {
 		var len = (length < other.length) ? length : other.length;
 		for( i in 0...len )
 			if( b1[i] != b2[i] )
-				return untyped b1[i] - untyped b2[i];
+				return untyped b1[i] - b2[i];
 		return length - other.length;
 		#end
 	}
@@ -578,7 +578,7 @@ class Bytes {
 		return new Bytes(b.length,b);
 		#end
 	}
-	
+
 	/**
 		Convert hexadecimal string to Bytes.
 		Support only straight hex string ( Example: "0FDA14058916052309" )
@@ -594,7 +594,7 @@ class Bytes {
 			high = (high & 0xF) + ( (high & 0x40) >> 6 ) * 9;
 			low = (low & 0xF) + ( (low & 0x40) >> 6 ) * 9;
 			ret.set( i ,( (high << 4) | low)  & 0xFF );
-		}  
+		}
 
 		return ret;
 	}