diff options
author | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2000-09-13 20:20:17 +0000 |
---|---|---|
committer | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2000-09-13 20:20:17 +0000 |
commit | 5c3581d51ee5c0429babbe6ec4b4f8799e9c2bc2 (patch) | |
tree | 0dfce90a882669f0b9485010e45d0ddd893655b3 /strings/apr_snprintf.c | |
parent | 1ef7def28b22d34ae930691bb6afe0c2ebb16d9a (diff) | |
download | libapr-5c3581d51ee5c0429babbe6ec4b4f8799e9c2bc2.tar.gz |
apr_snprintf(): Get quad format strings working on OS/390 (and perhaps
some other platforms). The wrong type (long) was used when grabbing
a %q(x|d) argument.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60529 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'strings/apr_snprintf.c')
-rw-r--r-- | strings/apr_snprintf.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/strings/apr_snprintf.c b/strings/apr_snprintf.c index 9e826938d..30648e7da 100644 --- a/strings/apr_snprintf.c +++ b/strings/apr_snprintf.c @@ -90,21 +90,17 @@ typedef enum { #ifndef TRUE #define TRUE 1 #endif -#ifndef APR_LONGEST_LONG -#define APR_LONGEST_LONG long -#endif #define NUL '\0' #define WIDE_INT long -#define WIDEST_INT APR_LONGEST_LONG typedef WIDE_INT wide_int; typedef unsigned WIDE_INT u_wide_int; -typedef WIDEST_INT widest_int; +typedef apr_int64_t widest_int; #ifdef __TANDEM /* Although Tandem supports "long long" there is no unsigned variant. */ typedef unsigned long u_widest_int; #else -typedef unsigned WIDEST_INT u_widest_int; +typedef apr_uint64_t u_widest_int; #endif typedef int bool_int; |