Browse Source

fixed "is Bool".

Nicolas Cannasse 19 năm trước cách đây
mục cha
commit
4e220ea6fe
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      std/flash/Boot.hx

+ 1 - 1
std/flash/Boot.hx

@@ -103,7 +103,7 @@ class Boot {
 			case Float:
 				return __typeof__(o) == "number";
 			case Bool:
-				return (o == true || o == false);
+				return (o === true || o === false);
 			case String:
 				return __typeof__(o) == "string";
 			case Dynamic: