Skip to content

Commit d57b74d

Browse files
authored
fix buildkite for dmd/pull/11387 (#303)
1 parent 76a6049 commit d57b74d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

source/mir/bignum/low_level_view.d

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1891,7 +1891,7 @@ unittest
18911891
assert (cast(float)view == -0);
18921892
assert (cast(double)view == -0x1.1p-511);
18931893
static if (real.mant_dig >= 64)
1894-
assert (cast(real)view == -0x8.80000000000019fp-514);
1894+
assert (cast(real)view == -0x8.80000000000019fp-514L);
18951895

18961896
view = DecimalView!Args(true, 293, BigUIntView!Args.fromHexString("36496F6C4ED38"));
18971897
assert (cast(float)view == -float.infinity);
@@ -1903,7 +1903,7 @@ unittest
19031903
assert (cast(float)view == 1);
19041904
assert (cast(double)view == 1);
19051905
static if (real.mant_dig >= 64)
1906-
assert (cast(real)view == 1);
1906+
assert (cast(real)view == 1L);
19071907

19081908
view = DecimalView!Args(false, -5, BigUIntView!Args.fromHexString("3"));
19091909
assert (cast(float)view == 3e-5f);
@@ -1963,19 +1963,19 @@ unittest
19631963
assert (cast(float)view == 8713e-23f);
19641964
assert (cast(double)view == 0x1.9b75b4e7de2b9p-64);
19651965
static if (real.mant_dig >= 64)
1966-
assert (cast(real)view == 0xc.dbada73ef15c401p-67);
1966+
assert (cast(real)view == 0xc.dbada73ef15c401p-67L);
19671967

19681968
view = DecimalView!Args(false, 300, BigUIntView!Args.fromHexString("1"));
19691969
assert (cast(float)view == float.infinity);
19701970
assert (cast(double)view == 0x1.7e43c8800759cp+996);
19711971
static if (real.mant_dig >= 64)
1972-
assert (cast(real)view == 0xb.f21e44003acdd2dp+993);
1972+
assert (cast(real)view == 0xb.f21e44003acdd2dp+993L);
19731973

19741974
view = DecimalView!Args(false, 245, BigUIntView!Args.fromHexString("B3A73CEB227"));
19751975
assert (cast(float)view == float.infinity);
19761976
assert (cast(double)view == 0x1.48e3735333cb6p+857);
19771977
static if (real.mant_dig >= 64)
1978-
assert (cast(real)view == 0xa.471b9a999e5b01ep+854);
1978+
assert (cast(real)view == 0xa.471b9a999e5b01ep+854L);
19791979

19801980
view = DecimalView!Args(false, 0, BigUIntView!Args.fromHexString("88BF4748507FB9900ADB624CCFF8D78897DC900FB0460327D4D86D327219"));
19811981
assert (cast(float)view == float.infinity);
@@ -2059,13 +2059,13 @@ unittest
20592059
assert (cast(float)view == 0);
20602060
assert (cast(double)view == 0);
20612061
static if (real.mant_dig >= 64)
2062-
assert (cast(real)view == 0);
2062+
assert (cast(real)view == 0L);
20632063

20642064
view = DecimalView!Args(false, 0, BigUIntView!Args.init);
20652065
assert (cast(float)view == 0);
20662066
assert (cast(double)view == 0);
20672067
static if (real.mant_dig >= 64)
2068-
assert (cast(real)view == 0);
2068+
assert (cast(real)view == 0L);
20692069

20702070
view = DecimalView!Args(false, -325, BigUIntView!Args.fromHexString("1"));
20712071
assert (cast(float)view == 0);
@@ -2095,13 +2095,13 @@ unittest
20952095
assert (cast(float)view == 0);
20962096
assert (cast(double)view == 0);
20972097
static if (real.mant_dig >= 64)
2098-
assert (cast(real)view == 0);
2098+
assert (cast(real)view == 0L);
20992099

21002100
view = DecimalView!Args(false, -10000, BigUIntView!Args.fromHexString("1"));
21012101
assert (cast(float)view == 0);
21022102
assert (cast(double)view == 0);
21032103
static if (real.mant_dig >= 64)
2104-
assert (cast(real)view == 0);
2104+
assert (cast(real)view == 0L);
21052105

21062106
view = DecimalView!Args(false, -4969, BigUIntView!Args.fromHexString("329659A941466C6B"));
21072107
assert (cast(float)view == 0);

0 commit comments

Comments
 (0)