Explorar o código

[js] loose untyped in Std.random

Dan Korostelev %!s(int64=9) %!d(string=hai) anos
pai
achega
7f932bd9c4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {