From 03f1648872daf555bdf48427f22219626c7b666a Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 18 Dec 1998 07:08:03 +0000 Subject: Attached is a patch with some fixes that (I think that) should go into 6.4.1. Here is the list: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - The type int8 now works. In fact, the bug(s) were in src/backend/port/snprintf.c, so int8 is probably broken in every platform that hasn't a native snprintf/vsnprintf. The type itself worked as expected, only the output was wrong. Anyway, this patch should be checked in other platforms. - The regression tests for int2 and int4, which were broken due to differences in the error messages, are fixed. - The regression test for float8, which was broken in the reference platform, is also fixed. I don't know if the new file (float8-OSF1.out) will work on other platforms, but it might be worth to try it. - Two new template files are provided (alpha_cc, which includes optimization, and alpha_gcc), and src/templates/.similar is updated accordingly. src/templates/alpha should be removed from the distribution. *IMPORTANT NOTE*: I don't know if you can use gcc to compile postgres; I've written the alpha_gcc file because alpha_cc has some flags that are specific to DEC C. - There is a (very basic) Digital Unix specific FAQ in doc/FAQ_DigitalUnix. -- ------------------------------------------------------------------- Pedro José Lobo Perea Tel: +34 91 336 78 19 --- src/backend/port/snprintf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/port/snprintf.c') diff --git a/src/backend/port/snprintf.c b/src/backend/port/snprintf.c index 2e3e077a66..7ec97b94e8 100644 --- a/src/backend/port/snprintf.c +++ b/src/backend/port/snprintf.c @@ -72,7 +72,7 @@ typedef long long long_long; * causing nast effects. **************************************************************/ -/*static char _id[] = "$Id: snprintf.c,v 1.13 1998/12/18 07:03:06 momjian Exp $";*/ +/*static char _id[] = "$Id: snprintf.c,v 1.14 1998/12/18 07:08:00 momjian Exp $";*/ static char *end; static int SnprfOverflow; @@ -349,7 +349,7 @@ int base, zpad; { int signvalue = 0; -#ifdef HAVE_LONG_INT_64 +#ifdef HAVE_LONG_LONG_INT_64 unsigned long_long uvalue; #else unsigned long uvalue; -- cgit v1.2.1