[Tinymux] TinyMUX26 Compile Errors
Stephen Dennis
brazilofmux at gmail.com
Tue Feb 14 15:06:49 EST 2006
The following patch backs out the change to Flt_Rounds. This change
was added to avoid a compiler warning about (Flt_Rounds == 1) always
being true, but I'm still trying to understand why the fix for that
warning is now generate the error 'missing binary operator before
token "("' on your machine.
What kind of machine is it? What version of gcc/g++ are you using?
Brazil
--- strtod.cpp 11 Jan 2006 00:50:01 -0000 1.20
+++ strtod.cpp 10 Jan 2006 03:46:33 -0000 1.19
@@ -1569,8 +1569,13 @@
dval(rv) = tens[k - 9] * dval(rv) + z;
}
bd0 = 0;
-#if defined(RND_PROQUOT) || defined(Honor_FLT_ROUNDS) || Flt_Rounds == 1
- if (nd <= DBL_DIG)
+ if (nd <= DBL_DIG
+#ifndef RND_PRODQUOT
+#ifndef Honor_FLT_ROUNDS
+ && Flt_Rounds == 1
+#endif
+#endif
+ )
{
if (!e)
{
@@ -1646,7 +1651,6 @@
}
#endif
}
-#endif
e1 += nd - k;
#ifdef IEEE_Arith
@@ -2256,8 +2260,11 @@
case 3: /* towards -infinity */
aadj1 += 0.5;
}
-#elif Flt_Rounds == 0
- aadj1 += 0.5;
+#else
+ if (Flt_Rounds == 0)
+ {
+ aadj1 += 0.5;
+ }
#endif /*Check_FLT_ROUNDS*/
}
y = word0(rv) & Exp_mask;
More information about the Tinymux
mailing list