Răsfoiți Sursa

*** empty log message ***

Franco Ponticelli 16 ani în urmă
părinte
comite
d27e6998d2
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      std/php/PhpMath__.hx

+ 2 - 2
std/php/PhpMath__.hx

@@ -24,7 +24,7 @@
  */
 package php;
 
-class PhpMath__ 
+class PhpMath__
 {
 	public static var PI;
 	public static var NaN;
@@ -42,7 +42,7 @@ class PhpMath__
 	public static function log(v)      { return untyped __call__("log", v); }
 	public static function sqrt(v)     { return untyped __call__("sqrt", v); }
 	public static function round(v)    { return untyped __call__("round", v); }
-	public static function floor(v)    { return untyped __call__("floor", v); }
+	public static function floor(v)    { return untyped __call__("(int) floor", v); }
 	public static function ceil(v)     { return untyped __call__("ceil", v); }
 	public static function atan(v)     { return untyped __call__("atan", v); }
 	public static function asin(v)     { return untyped __call__("asin", v); }