浏览代码

fixed Std.is Int with number-string

Nicolas Cannasse 19 年之前
父节点
当前提交
0c2b98145f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      std/flash/Boot.hx

+ 1 - 1
std/flash/Boot.hx

@@ -114,7 +114,7 @@ class Boot {
 				return true;
 			switch( cl ) {
 			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:
 				return __typeof__(o) == "number";
 			case Bool: