Fix compiler warning from Clang.
authorThomas Munro <tmunro@postgresql.org>
Fri, 31 Jul 2020 07:08:09 +0000 (19:08 +1200)
committerThomas 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

index 6c6bb220149326d0b16caf6ce3a1a53bf60584ab..de87ad6ef702877445cf6588526211b77cbb6b56 100644 (file)
@@ -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
    },