r396 - trunk/code/tools/lcc/src

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Dec 1 05:59:50 EST 2005


Author: icculus
Date: 2005-12-01 05:59:50 -0500 (Thu, 01 Dec 2005)
New Revision: 396

Modified:
   trunk/code/tools/lcc/src/expr.c
Log:
Another "long double" ...


Modified: trunk/code/tools/lcc/src/expr.c
===================================================================
--- trunk/code/tools/lcc/src/expr.c	2005-12-01 09:54:14 UTC (rev 395)
+++ trunk/code/tools/lcc/src/expr.c	2005-12-01 10:59:50 UTC (rev 396)
@@ -571,7 +571,7 @@
 				case UNSIGNED:
 					if (isfloat(dst)) {
 						Type ssrc = signedint(src);
-						Tree two = cnsttree(longdouble, (long double)2.0);
+						Tree two = cnsttree(longdouble, (double)2.0);
 						p = (*optree['+'])(ADD,
 							(*optree['*'])(MUL,
 								two,
@@ -587,7 +587,7 @@
 				case FLOAT:
 					if (isunsigned(dst)) {
 						Type sdst = signedint(dst);
-						Tree c = cast(cnsttree(longdouble, (long double)sdst->u.sym->u.limits.max.i + 1), src);
+						Tree c = cast(cnsttree(longdouble, (double)sdst->u.sym->u.limits.max.i + 1), src);
 						p = condtree(
 							simplify(GE, src, p, c),
 							(*optree['+'])(ADD,




More information about the quake3-commits mailing list