Browse Source

dodge hxcpp small value weirdness

Simon Krajewski 3 weeks ago
parent
commit
65786adf2d
2 changed files with 2 additions and 2 deletions
  1. 1 1
      tests/unit/src/unit/issues/Issue12264.hx
  2. 1 1
      tests/unit/src/unitstd/Type.unit.hx

+ 1 - 1
tests/unit/src/unit/issues/Issue12264.hx

@@ -2,6 +2,6 @@ package unit.issues;
 
 
 class Issue12264 extends Test {
 class Issue12264 extends Test {
 	function test() {
 	function test() {
-		eq(true, Type.typeof(0i64).match(TInt64));
+		eq(true, Type.typeof(256i64).match(TInt64));
 	}
 	}
 }
 }

+ 1 - 1
tests/unit/src/unitstd/Type.unit.hx

@@ -129,7 +129,7 @@ Type.typeof(1e10) == TFloat;
 #if !eval
 #if !eval
 Type.typeof(1.0) == TInt;
 Type.typeof(1.0) == TInt;
 #end
 #end
-var i0 = haxe.Int64.ofInt(0);
+var i0 = haxe.Int64.ofInt(256);
 Type.typeof(i0) == TInt64;
 Type.typeof(i0) == TInt64;
 var ibig = haxe.Int64.make(1,0);
 var ibig = haxe.Int64.make(1,0);
 Type.typeof(ibig) == TInt64;
 Type.typeof(ibig) == TInt64;