diff options
author | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2001-07-25 19:45:27 +0000 |
---|---|---|
committer | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2001-07-25 19:45:27 +0000 |
commit | f06fb2e2a93996ad85421bd89add41d2646fabe4 (patch) | |
tree | 1b0b4fe2196fb0520089ee520000ba8cf9a22c67 /strings | |
parent | af64e6a3c09671d5f0d846f8496ab873648bfc75 (diff) | |
download | libapr-f06fb2e2a93996ad85421bd89add41d2646fabe4.tar.gz |
Yes, this is a bogus cast. It's necessary since win32 figures out the
same calculation in apr_ltoa() is safe, but can't figure this out for
an int64 value :(
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62020 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'strings')
-rw-r--r-- | strings/apr_strings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/strings/apr_strings.c b/strings/apr_strings.c index 2d0eda790..d7ae082b6 100644 --- a/strings/apr_strings.c +++ b/strings/apr_strings.c @@ -227,7 +227,7 @@ APR_DECLARE(char *) apr_off_t_toa(apr_pool_t *p, apr_off_t n) } *start = 0; do { - *--start = '0' + (n % 10); + *--start = '0' + (char)(n % 10); n /= 10; } while (n); if (negative) { |