We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6488c6 commit 31383a9Copy full SHA for 31383a9
1 file changed
source/mir/bignum/fixed.d
@@ -295,6 +295,7 @@ struct UInt(size_t size)
295
return opCmp(UInt!size(rhs));
296
}
297
298
+ static if (size >= 64)
299
/++
300
+/
301
ref UInt!size opAssign(ulong rhs) scope return
@@ -303,6 +304,14 @@ struct UInt(size_t size)
303
304
this.data = UInt!size(rhs).data;
305
return this;
306
307
+ else
308
+ ///
309
+ ref UInt!size opAssign(uint rhs) scope return
310
+ @safe pure nothrow @nogc
311
+ {
312
+ this.data = UInt!size(rhs).data;
313
+ return this;
314
+ }
315
316
317
0 commit comments