Skip to content

Commit 31383a9

Browse files
committed
fixup
1 parent e6488c6 commit 31383a9

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

source/mir/bignum/fixed.d

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ struct UInt(size_t size)
295295
return opCmp(UInt!size(rhs));
296296
}
297297

298+
static if (size >= 64)
298299
/++
299300
+/
300301
ref UInt!size opAssign(ulong rhs) scope return
@@ -303,6 +304,14 @@ struct UInt(size_t size)
303304
this.data = UInt!size(rhs).data;
304305
return this;
305306
}
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+
}
306315

307316
/++
308317
+/

0 commit comments

Comments
 (0)