postgres.git / summary / log / commit / refs
commit 7be04496a9f763fc4d4c1d06ce9ccc250e52df31
Author: Thomas Munro <tmunro@postgresql.org>
Date: Fri Jul 31 07:08:09 2020 +0000
First released in: 14.0
Fix compiler warning from Clang.
Per build farm.
Discussion: https://postgr.es/m/20200731062626.GD3317%40paquier.xyz
src/backend/utils/misc/guc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c
index 6c6bb220149..de87ad6ef70 100644
--- 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
},
[parent: 84b1c63ad418]