From 6fbbf139bb874dfa2f31ab04c68157abcfe20351 Mon Sep 17 00:00:00 2001 From: icculus Date: Mon, 28 Nov 2005 09:53:09 +0000 Subject: Fixed some compiler warnings in lcc...mostly "long double" stuff. git-svn-id: svn://svn.icculus.org/quake3/trunk@384 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/tools/lcc/src/simp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'code/tools/lcc/src/simp.c') diff --git a/code/tools/lcc/src/simp.c b/code/tools/lcc/src/simp.c index 227dfbb..ea26ab6 100644 --- a/code/tools/lcc/src/simp.c +++ b/code/tools/lcc/src/simp.c @@ -246,15 +246,15 @@ Tree simplify(int op, Type ty, Tree l, Tree r) { break; case CVI+F: - xcvtcnst(I,l->u.v.i,ty,d,(long double)l->u.v.i); + xcvtcnst(I,l->u.v.i,ty,d,(double)l->u.v.i); case CVU+F: - xcvtcnst(U,l->u.v.u,ty,d,(long double)l->u.v.u); + xcvtcnst(U,l->u.v.u,ty,d,(double)l->u.v.u); break; case CVF+I: xcvtcnst(F,l->u.v.d,ty,i,(long)l->u.v.d); break; case CVF+F: { - float d; + float d = 0.0f; if (l->op == CNST+F) { if (l->u.v.d < ty->u.sym->u.limits.min.d) d = ty->u.sym->u.limits.min.d; @@ -263,7 +263,7 @@ Tree simplify(int op, Type ty, Tree l, Tree r) { else d = l->u.v.d; } - xcvtcnst(F,l->u.v.d,ty,d,(long double)d); + xcvtcnst(F,l->u.v.d,ty,d,(double)d); break; } case BAND+U: -- cgit v1.2.3