Skip to content

Commit 86e075e

Browse files
committed
fixup
1 parent daee326 commit 86e075e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/mir/bignum/integer.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ struct BigInt(uint maxSize64)
7575
}
7676
else
7777
{
78-
this.length = data && (data >> 32);
78+
this.length = !!data + !!(data >> 32);
7979
this.data[0] = cast(uint) data;
8080
this.data[1] = cast(uint) (data >> 32);
8181
}

0 commit comments

Comments
 (0)