apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r368548 - /apr/apr/trunk/strings/apr_snprintf.c
Date Fri, 13 Jan 2006 01:51:28 GMT
Author: wrowe
Date: Thu Jan 12 17:51:25 2006
New Revision: 368548

URL: http://svn.apache.org/viewcvs?rev=368548&view=rev
Log:

  Eliminate a type mismatch, this is the smaller patch - changing
  the declaration of apr_gcvt() - an exported function, is much
  dicier.

Modified:
    apr/apr/trunk/strings/apr_snprintf.c

Modified: apr/apr/trunk/strings/apr_snprintf.c
URL: http://svn.apache.org/viewcvs/apr/apr/trunk/strings/apr_snprintf.c?rev=368548&r1=368547&r2=368548&view=diff
==============================================================================
--- apr/apr/trunk/strings/apr_snprintf.c (original)
+++ apr/apr/trunk/strings/apr_snprintf.c Thu Jan 12 17:51:25 2006
@@ -1036,7 +1036,7 @@
 #endif
                 if (!s) {
                     s = conv_fp(*fmt, fp_num, alternate_form,
-                            (adjust_precision == NO) ? FLOAT_DIGITS : precision,
+                                (int)((adjust_precision == NO) ? FLOAT_DIGITS : precision),
                                 &is_negative, &num_buf[1], &s_len);
                     if (is_negative)
                         prefix_char = '-';
@@ -1057,7 +1057,7 @@
                 /*
                  * * We use &num_buf[ 1 ], so that we have room for the sign
                  */
-                s = apr_gcvt(va_arg(ap, double), precision, &num_buf[1],
+                s = apr_gcvt(va_arg(ap, double), (int) precision, &num_buf[1],
                             alternate_form);
                 if (*s == '-')
                     prefix_char = *s++;



Mime
View raw message