Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ellie-idb committed Dec 29, 2021
1 parent d7ffe9c commit f6e9b0d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/mir/bignum/integer.d
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit f6e9b0d

Please sign in to comment.