Mercurial > projects > ddmd
diff dmd/TypeBasic.d @ 96:acd69f84627e
further work
author | Trass3r |
---|---|
date | Tue, 31 Aug 2010 02:12:15 +0200 |
parents | 2e2a5c3f943a |
children | e28b18c23469 |
line wrap: on
line diff
--- a/dmd/TypeBasic.d Mon Aug 30 23:08:44 2010 +0200 +++ b/dmd/TypeBasic.d Tue Aug 31 02:12:15 2010 +0200 @@ -282,6 +282,24 @@ case TY.Tdchar: ivalue = dchar.min; goto Livalue; case TY.Tcomplex32: case TY.Timaginary32: + case Tfloat32: + case Tcomplex64: + case Timaginary64: + case Tfloat64: + case Tcomplex80: + case Timaginary80: + case Tfloat80: + // For backwards compatibility - eventually, deprecate + goto Lmin_normal; + } + } + else if (ident == Id.min_normal) + { + Lmin_normal: + switch (ty) + { + case Tcomplex32: + case Timaginary32: case TY.Tfloat32: fvalue = float.min; goto Lfvalue; case TY.Tcomplex64: case TY.Timaginary64: @@ -450,7 +468,7 @@ cvalue.im = fvalue; //for (int i = 0; i < 20; i++) - // printf("%02x ", ((unsigned char *)&cvalue)[i]); + // printf("%02x ", ((unsigned char *)&cvalue)[i]); //printf("\n"); e = new ComplexExp(loc, cvalue, this); }