Bug 18904 – core.internal.string has issues with radix
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-05-24T19:50:45Z
Last change time
2018-06-03T23:37:03Z
Keywords
pull
Assigned to
No Owner
Creator
Steven Schveighoffer
Comments
Comment #0 by schveiguy — 2018-05-24T19:50:45Z
radices of 0 or 1 will cause crashes/infinite loops. radices greater than 36 will not be printable.
For the numDigits function, we can make sure it makes sense.
For the other functions, I'll just return a blank string, making the error detectable elsewhere.