diff options
author | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2006-01-13 01:51:25 +0000 |
---|---|---|
committer | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2006-01-13 01:51:25 +0000 |
commit | f6825a90606dd7e48b0bf6c791297b9ff5b9c93e (patch) | |
tree | cc3a3cbadd006238c909ec84536bd41d45d5c6b9 /strings | |
parent | f28b217e19df05a099dfece336eb0ae1af7e6c61 (diff) | |
download | libapr-f6825a90606dd7e48b0bf6c791297b9ff5b9c93e.tar.gz |
Eliminate a type mismatch, this is the smaller patch - changing
the declaration of apr_gcvt() - an exported function, is much
dicier.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@368548 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'strings')
-rw-r--r-- | strings/apr_snprintf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/strings/apr_snprintf.c b/strings/apr_snprintf.c index a98799a3a..df2bf6560 100644 --- a/strings/apr_snprintf.c +++ b/strings/apr_snprintf.c @@ -1036,7 +1036,7 @@ APR_DECLARE(int) apr_vformatter(int (*flush_func)(apr_vformatter_buff_t *), #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 @@ APR_DECLARE(int) apr_vformatter(int (*flush_func)(apr_vformatter_buff_t *), /* * * 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++; |