Commit cb633190 authored by Bruce Momjian's avatar Bruce Momjian

Fix for snprintf and long long unsigned.

parent f7bc3564
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
/* IRIX doesn't do 'long long' in va_arg(), so use a typedef */ /* IRIX doesn't do 'long long' in va_arg(), so use a typedef */
#ifdef HAVE_LONG_LONG_INT_64 #ifdef HAVE_LONG_LONG_INT_64
typedef long long long_long; typedef long long long_long;
typedef unsigned long long ulong_long;
#endif #endif
/* /*
...@@ -72,7 +73,7 @@ typedef long long long_long; ...@@ -72,7 +73,7 @@ typedef long long long_long;
* causing nast effects. * 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 char *end;
static int SnprfOverflow; static int SnprfOverflow;
...@@ -350,7 +351,7 @@ int base, ...@@ -350,7 +351,7 @@ int base,
{ {
int signvalue = 0; int signvalue = 0;
#ifdef HAVE_LONG_LONG_INT_64 #ifdef HAVE_LONG_LONG_INT_64
unsigned long_long uvalue; ulong_long uvalue;
#else #else
unsigned long uvalue; unsigned long uvalue;
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment