Bug 14635 – inconsistent type for line: uint vs size_t
Status
RESOLVED
Resolution
WONTFIX
Severity
normal
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
x86
OS
All
Creation time
2015-05-31T20:44:00Z
Last change time
2017-03-31T23:21:38Z
Keywords
trivial
Assigned to
nobody
Creator
timothee.cour2
Comments
Comment #0 by timothee.cour2 — 2015-05-31T20:44:16Z
phobos uses 'size_t line = __LINE__' throughout the code, but in $core/exception.d we have uint instead for the line parameter:
void _d_assert_msg(string msg, string file, uint line)
etc
Comment #1 by mk — 2016-12-23T20:42:29Z
Hmm, dmd uses uint and Phobos uses size_t. I'm not sure what (if anything) to do with it.
Comment #2 by schveiguy — 2017-03-31T23:21:38Z
Good point, however, this is a dmd internal hook, and uints implicitly cast to size_t. We can worry about this the day DMD can successfully file a 2^32 + 1 line file.