소스 검색

[js] loose untyped in Std.random

Dan Korostelev 9 년 전
부모
커밋
7f932bd9c4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      std/js/_std/Std.hx

+ 1 - 1
std/js/_std/Std.hx

@@ -55,7 +55,7 @@ import js.Boot;
 	}
 
 	public static function random( x : Int ) : Int {
-		return untyped x <= 0 ? 0 : Math.floor(Math.random()*x);
+		return x <= 0 ? 0 : Math.floor(Math.random()*x);
 	}
 
 	static function __init__() : Void untyped {