Skip to content

Commit 9015a57

Browse files
committed
Remove scope from BigUint.opBinary
1 parent 6980964 commit 9015a57

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

std/internal/math/biguintcore.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ public:
710710
// All of these member functions create a new BigUint.
711711

712712
// return x >> y
713-
BigUint opBinary(string op, Tulong)(Tulong y) pure nothrow @safe const scope
713+
BigUint opBinary(string op, Tulong)(Tulong y) pure nothrow @safe const
714714
if (op == ">>" && is (Tulong == ulong))
715715
{
716716
assert(y > 0, "Can not right shift BigUint by 0");
@@ -719,7 +719,7 @@ public:
719719
uint words = cast(uint)(y >> LG2BIGDIGITBITS);
720720
if (bits == 0)
721721
{
722-
return BigUint(data[words..$].idup); // TODO can .idup be avoided?
722+
return BigUint(data[words..$]);
723723
}
724724
else
725725
{

0 commit comments

Comments
 (0)