Discussion:
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=99283
Patch: About as simple as you can possibly imagine.
idgen.c, line 116
{ "infinity" },
{ "dig" },
{ "epsilon" },
+ { "min_normal" },
{ "mant_dig" },
{ "max_10_exp" },
mtype.c, line 1989:
else if (ident == Id::min)
{
switch (ty)
{
case Tint8: ivalue = -128; goto Livalue;
case Tuns8: ivalue = 0; goto Livalue;
case Tint16: ivalue = -32768; goto Livalue;
case Tuns16: ivalue = 0; goto Livalue;
case Tint32: ivalue = -2147483647L - 1; goto Livalue;
case Tuns32: ivalue = 0; goto Livalue;
case Tint64: ivalue = (-9223372036854775807LL-1LL); goto Livalue;
case Tuns64: ivalue = 0; goto Livalue;
case Tbool: ivalue = 0; goto Livalue;
case Tchar: ivalue = 0; goto Livalue;
case Twchar: ivalue = 0; goto Livalue;
case Tdchar: ivalue = 0; goto Livalue;
+ }
+ }
+ else if (ident == Id::min_normal)
+ {
+ switch (ty)
+ {
case Tcomplex32:
Comment #1 by leandro.lucarella — 2009-10-28T09:04:33Z
It would be too much trouble to publish the patches using diff -u and attaching them as a file? This way I can test them more easily.
Thank you.
Comment #2 by clugdbug — 2009-10-28T09:10:46Z
Created attachment 483
Patch against DMD2 svn221
For Leandro. Walter normally puts the patches in manually, line-by-line, for tiny patches like this, so I've given up attaching patch files.
Comment #3 by leandro.lucarella — 2009-10-28T11:10:09Z
Thanks! I guess Walter will be able to do the modifications manually seeing the diff-generated patch anyway, and people wanting to test the patches before they actually committed can do it easily too =)