[Issue 5995] string append negative integer causes segfault
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon May 16 10:36:00 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5995
Steven Schveighoffer <schveiguy at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |schveiguy at yahoo.com
--- Comment #3 from Steven Schveighoffer <schveiguy at yahoo.com> 2011-05-16 10:31:52 PDT ---
Hm... I think in general it is a design flaw to allow int to implicitly cast to
dchar.
I think that is the source of the problem.
Going from (d|w)char to the appropriate width integer should be fine, but going
the other way seems prone to error.
Note that in lifetime.d, the assert(0) should not lead to a segmentation fault.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list