Skip to content

Commit fa56a32

Browse files
committed
fix deprecation warnings in bignum views
1 parent dc79260 commit fa56a32

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/mir/bignum/low_level_view.d

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ struct BigUIntView(W)
9191
/++
9292
Retrurns: signed integer view using the same data payload
9393
+/
94-
BigIntView!W signed()(bool sign = false) @safe pure nothrow @nogc return @property
94+
BigIntView!W signed()(bool sign = false) @safe pure nothrow @nogc return scope @property
9595
{
9696
return typeof(return)(this, sign);
9797
}
@@ -384,7 +384,7 @@ struct BigUIntView(W)
384384
work = work.normalized;
385385
}
386386

387-
this = work;
387+
()@trusted {this = work;}();
388388
return true;
389389
}
390390

@@ -487,7 +487,7 @@ struct BigUIntView(W)
487487
work = work.normalized;
488488
}
489489

490-
this = work;
490+
()@trusted {this = work;}();
491491
return true;
492492
}
493493

@@ -1692,7 +1692,7 @@ struct BigIntView(W)
16921692

16931693
static if (isMutable!W && W.sizeof >= 4)
16941694
/// ditto
1695-
bool opOpAssign(string op)(BigUIntView!(const W) rhs, bool overflow = false)
1695+
bool opOpAssign(string op)(scope BigUIntView!(const W) rhs, bool overflow = false)
16961696
@safe pure nothrow @nogc
16971697
if (op == "+" || op == "-")
16981698
{

0 commit comments

Comments
 (0)