We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent daee326 commit 86e075eCopy full SHA for 86e075e
1 file changed
source/mir/bignum/integer.d
@@ -75,7 +75,7 @@ struct BigInt(uint maxSize64)
75
}
76
else
77
{
78
- this.length = data && (data >> 32);
+ this.length = !!data + !!(data >> 32);
79
this.data[0] = cast(uint) data;
80
this.data[1] = cast(uint) (data >> 32);
81
0 commit comments