projects
/
users
/
gsingh
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f67b113
)
UINT64CONST'fy long constants in pgbench
author
Teodor Sigaev
<teodor@sigaev.ru>
Thu, 22 Mar 2018 16:38:54 +0000
(19:38 +0300)
committer
Teodor 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
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/pgbench/pgbench.c
b/src/bin/pgbench/pgbench.c
index 894571e54f2327926be9ae762e241c6e30d5dd5e..89e4bf5f28790093f61de62b114251379b36a2b5 100644
(file)
--- a/
src/bin/pgbench/pgbench.c
+++ b/
src/bin/pgbench/pgbench.c
@@
-64,10
+64,10
@@
/*
* 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