From f6e9b0d25e4c4a7496a66dd91d6094ffbd8edba7 Mon Sep 17 00:00:00 2001 From: hatf0 Date: Wed, 29 Dec 2021 14:44:58 -0500 Subject: [PATCH] fix CI --- source/mir/bignum/integer.d | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/mir/bignum/integer.d b/source/mir/bignum/integer.d index 817d5814..df34402b 100644 --- a/source/mir/bignum/integer.d +++ b/source/mir/bignum/integer.d @@ -24,7 +24,8 @@ struct BigInt(size_t maxSize64) /// bool sign; /// - ulong length; + // XXX: big hack here + typeof(data.length) length; /// size_t[ulong.sizeof / size_t.sizeof * maxSize64] data = void; @@ -479,7 +480,7 @@ struct BigInt(size_t maxSize64) /// BigInt opBinary(size_t size)(UInt!size rhs) const @safe pure nothrow @nogc - if (size <= maxSize64 * (size_t.sizeof * 8)) + if (size <= maxSize64 * (ulong.sizeof * 8)) { BigInt ret = this; ret.opOpAssign!op(rhs);