Browse Source

flash9 update

Nicolas Cannasse 19 years ago
parent
commit
b79cf13190
1 changed files with 4 additions and 0 deletions
  1. 4 0
      std/Std.hx

+ 4 - 0
std/Std.hx

@@ -62,7 +62,11 @@ class Std {
 		Convert a Float to an Int, rounded down.
 	**/
 	public static function int( x : Float ) : Int {
+		#if flash9
+		return untyped __global__["int"](x);
+		#else true
 		return Math.floor(x);
+		#end
 	}
 
 	/**