PATCH, dfp: silence warning

Ben Elliston bje@au1.ibm.com
Tue Dec 9 05:09:00 GMT 2008


This patch removes a cast that a decNumber API change makes unnecessary.
Committed.

2008-12-09  Ben Elliston  <bje@au.ibm.com>

        * config/dfp-bit.c (DFP_TO_INT): Remove unnecessary cast.

Index: config/dfp-bit.c
===================================================================
--- config/dfp-bit.c    (revision 142575)
+++ config/dfp-bit.c    (working copy)
@@ -536,7 +536,7 @@
   /* Rescale if the exponent is less than zero.  */
   decNumberToIntegralValue (&n2, &n1, &context);
   /* Get a value to use for the quantize call.  */
-  decNumberFromString (&qval, (char *) "1.", &context);
+  decNumberFromString (&qval, "1.", &context);
   /* Force the exponent to zero.  */
   decNumberQuantize (&n1, &n2, &qval, &context);
   /* Get a string, which at this point will not include an exponent.  */




More information about the Gcc-patches mailing list