← Back to index
|
Original Bugzilla link
Bug 15211 – BigInt%uint and BigInt%ulong return different types
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-10-16T23:59:30Z
Last change time
2020-03-21T03:56:34Z
Assigned to
No Owner
Creator
Vladimir Panteleev
See also
https://issues.dlang.org/show_bug.cgi?id=15212
Comments
Comment #0
by dlang-bugzilla — 2015-10-16T23:59:30Z
import std.bigint; pragma(msg, typeof(BigInt.init%uint.init)); pragma(msg, typeof(BigInt.init%ulong.init)); Prints: int BigInt This is especially annoying when the second operand is a size_t.
Comment #1
by b2.temp — 2018-01-14T12:41:17Z
Both return long in DMD trunk:
https://github.com/dlang/phobos/pull/6025/files
*** This issue has been marked as a duplicate of issue 18224 ***