Răsfoiți Sursa

fixed Std.is Int with number-string

Nicolas Cannasse 19 ani în urmă
părinte
comite
0c2b98145f
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      std/flash/Boot.hx

+ 1 - 1
std/flash/Boot.hx

@@ -114,7 +114,7 @@ class Boot {
 				return true;
 				return true;
 			switch( cl ) {
 			switch( cl ) {
 			case Int:
 			case Int:
-				return (Math.ceil(o) == o) && isFinite(o) && (o !== true) && (o !== false);
+				return (Math.ceil(o) === o) && isFinite(o) && (o !== true) && (o !== false);
 			case Float:
 			case Float:
 				return __typeof__(o) == "number";
 				return __typeof__(o) == "number";
 			case Bool:
 			case Bool: