summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1998-12-24 05:28:50 +0000
committerBruce Momjian <bruce@momjian.us>1998-12-24 05:28:50 +0000
commitcb6331901cc82193766da665f74fb73bdf238297 (patch)
treeee3e8a4c717cedd18a574d606f96b70d5a6cba50
parentf7bc35645ac78ad91898ac843e6f0cd3a8a3e343 (diff)
downloadpostgresql-cb6331901cc82193766da665f74fb73bdf238297.tar.gz
Fix for snprintf and long long unsigned.
-rw-r--r--src/backend/port/snprintf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/port/snprintf.c b/src/backend/port/snprintf.c
index 7ec97b94e8..5b541965b5 100644
--- a/src/backend/port/snprintf.c
+++ b/src/backend/port/snprintf.c
@@ -48,6 +48,7 @@
/* IRIX doesn't do 'long long' in va_arg(), so use a typedef */
#ifdef HAVE_LONG_LONG_INT_64
typedef long long long_long;
+typedef unsigned long long ulong_long;
#endif
/*
@@ -72,7 +73,7 @@ typedef long long long_long;
* causing nast effects.
**************************************************************/
-/*static char _id[] = "$Id: snprintf.c,v 1.14 1998/12/18 07:08:00 momjian Exp $";*/
+/*static char _id[] = "$Id: snprintf.c,v 1.15 1998/12/24 05:28:50 momjian Exp $";*/
static char *end;
static int SnprfOverflow;
@@ -350,7 +351,7 @@ int base,
{
int signvalue = 0;
#ifdef HAVE_LONG_LONG_INT_64
- unsigned long_long uvalue;
+ ulong_long uvalue;
#else
unsigned long uvalue;
#endif