Przeglądaj źródła

php : fixed bug

Franco Ponticelli 13 lat temu
rodzic
commit
5723b197a0
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      std/haxe/Int32.hx

+ 1 - 1
std/haxe/Int32.hx

@@ -35,7 +35,7 @@ class Int32 {
 	}
 	}
 
 
 	static inline function clamp( x : Int32 ) : Int32 {
 	static inline function clamp( x : Int32 ) : Int32 {
-		#if (js || flash8)
+		#if (js || flash8 || php)
 		return cast ((cast x) | 0); // force to-int convertion
 		return cast ((cast x) | 0); // force to-int convertion
 		#else
 		#else
 		return x;
 		return x;