From: Robert Haas Date: Mon, 5 Dec 2016 20:20:23 +0000 (-0500) Subject: dsa: Cope with the possibility that SIZE_MAX is not defined. X-Git-Tag: REL_10_BETA1~1303 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2bbdc6875d03bb826a4fd113eac45a72c68bc929;p=postgresql dsa: Cope with the possibility that SIZE_MAX is not defined. Per buildfarm member gaur and Tom Lane. --- diff --git a/src/backend/utils/mmgr/dsa.c b/src/backend/utils/mmgr/dsa.c index aa3ab58d38..abe3f1a63d 100644 --- a/src/backend/utils/mmgr/dsa.c +++ b/src/backend/utils/mmgr/dsa.c @@ -1184,7 +1184,7 @@ create_internal(void *place, size_t size, control->segment_header.freed = false; control->segment_header.size = DSA_INITIAL_SEGMENT_SIZE; control->handle = control_handle; - control->max_total_segment_size = SIZE_MAX; + control->max_total_segment_size = (Size) -1; control->total_segment_size = size; memset(&control->segment_handles[0], 0, sizeof(dsm_handle) * DSA_MAX_SEGMENTS);