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:
84b1c63
)
Fix compiler warning from Clang.
author
Thomas Munro
<tmunro@postgresql.org>
Fri, 31 Jul 2020 07:08:09 +0000
(19:08 +1200)
committer
Thomas Munro
<tmunro@postgresql.org>
Fri, 31 Jul 2020 07:08:09 +0000
(19:08 +1200)
Per build farm.
Discussion: https://postgr.es/m/
20200731062626
.GD3317%40paquier.xyz
src/backend/utils/misc/guc.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/misc/guc.c
b/src/backend/utils/misc/guc.c
index 6c6bb220149326d0b16caf6ce3a1a53bf60584ab..de87ad6ef702877445cf6588526211b77cbb6b56 100644
(file)
--- a/
src/backend/utils/misc/guc.c
+++ b/
src/backend/utils/misc/guc.c
@@
-2238,7
+2238,7
@@
static struct config_int ConfigureNamesInt[] =
GUC_UNIT_MB
},
&min_dynamic_shared_memory,
- 0, 0,
Min(INT_MAX, SIZE_MAX / 1024 / 1024
),
+ 0, 0,
(int) Min((size_t) INT_MAX, SIZE_MAX / (1024 * 1024)
),
NULL, NULL, NULL
},