pgsql/ /configure.in /configure rc/include/con ...

Started by Tom Laneover 25 years ago3 messagescomitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

CVSROOT: /home/projects/pgsql/cvsroot
Module name: pgsql
Changes by: tgl@hub.org 01/03/23 13:42:12

Modified files:
. : configure.in configure
src/include : config.h.in
src/include/utils: pg_crc.h
src/backend/utils/hash: pg_crc.c

Log message:
When using 'long long int' for int64 type, check to see if the compiler
accepts nnnLL syntax for long long constants. If so, decorate the CRC64
constants with LL to avoid warnings and/or erroneous results from certain
non-standards-compliant compilers.

#2Bruce Momjian
bruce@momjian.us
In reply to: Tom Lane (#1)
Re: pgsql/ /configure.in /configure rc/include/con ...

FYI, ecpg had several 0LL's. I changed them to (long long)0 because
there was not LL test at the time.

CVSROOT: /home/projects/pgsql/cvsroot
Module name: pgsql
Changes by: tgl@hub.org 01/03/23 13:42:12

Modified files:
. : configure.in configure
src/include : config.h.in
src/include/utils: pg_crc.h
src/backend/utils/hash: pg_crc.c

Log message:
When using 'long long int' for int64 type, check to see if the compiler
accepts nnnLL syntax for long long constants. If so, decorate the CRC64
constants with LL to avoid warnings and/or erroneous results from certain
non-standards-compliant compilers.

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Bruce Momjian (#2)
Re: pgsql/ /configure.in /configure rc/include/con ...

Bruce Momjian <pgman@candle.pha.pa.us> writes:

FYI, ecpg had several 0LL's. I changed them to (long long)0 because
there was not LL test at the time.

Should leave 'em that way, I'd say. Zero does not need LL decoration...

regards, tom lane