]> granicus.if.org Git - postgresql/commitdiff
UINT64CONST'fy long constants in pgbench
authorTeodor Sigaev <teodor@sigaev.ru>
Thu, 22 Mar 2018 16:38:54 +0000 (19:38 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Thu, 22 Mar 2018 16:38:54 +0000 (19:38 +0300)
In commit e51a04840a1c45db101686bef0b7025d5014c74b it was missed 64-bit
constants, wrap them with UINT64CONST().

Per buildfarm member dromedary and gripe from Tom Lane

src/bin/pgbench/pgbench.c

index 894571e54f2327926be9ae762e241c6e30d5dd5e..89e4bf5f28790093f61de62b114251379b36a2b5 100644 (file)
 /*
  * Hashing constants
  */
-#define FNV_PRIME 0x100000001b3
-#define FNV_OFFSET_BASIS 0xcbf29ce484222325
-#define MM2_MUL 0xc6a4a7935bd1e995
-#define MM2_ROT 47
+#define FNV_PRIME                      UINT64CONST(0x100000001b3)
+#define FNV_OFFSET_BASIS       UINT64CONST(0xcbf29ce484222325)
+#define MM2_MUL                                UINT64CONST(0xc6a4a7935bd1e995)
+#define MM2_ROT                                47
 
 /*
  * Multi-platform pthread implementations