From 820f41162e84a8fb16559ff915247c4815b3408b Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 1 Dec 2005 10:59:50 +0000 Subject: [PATCH] Another "long double" ... --- code/tools/lcc/src/expr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/tools/lcc/src/expr.c b/code/tools/lcc/src/expr.c index f20a0908..b8cb08b6 100644 --- a/code/tools/lcc/src/expr.c +++ b/code/tools/lcc/src/expr.c @@ -571,7 +571,7 @@ Tree cast(Tree p, Type type) { 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 @@ Tree cast(Tree p, Type type) { 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,