diff options
author | icculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-12-01 10:59:50 +0000 |
---|---|---|
committer | icculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-12-01 10:59:50 +0000 |
commit | a986fb4d42e5ab71bdee791aff141e97065e83c9 (patch) | |
tree | cd5f5d3975eb57c72767e991971c354e4ff05099 /code/tools/lcc | |
parent | 991af5f6ef10b8db8320ecd88328a848f4d89736 (diff) | |
download | ioquake3-aero-a986fb4d42e5ab71bdee791aff141e97065e83c9.tar.gz ioquake3-aero-a986fb4d42e5ab71bdee791aff141e97065e83c9.zip |
Another "long double" ...
git-svn-id: svn://svn.icculus.org/quake3/trunk@396 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/tools/lcc')
-rw-r--r-- | code/tools/lcc/src/expr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/code/tools/lcc/src/expr.c b/code/tools/lcc/src/expr.c index f20a090..b8cb08b 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, |