Skip to content

Commit 2bbdc68

Browse files
committed
dsa: Cope with the possibility that SIZE_MAX is not defined.
Per buildfarm member gaur and Tom Lane.
1 parent a0ae54d commit 2bbdc68

File tree

1 file changed

+1
-1
lines changed
  • src/backend/utils/mmgr

1 file changed

+1
-1
lines changed

src/backend/utils/mmgr/dsa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,7 @@ create_internal(void *place, size_t size,
11841184
control->segment_header.freed = false;
11851185
control->segment_header.size = DSA_INITIAL_SEGMENT_SIZE;
11861186
control->handle = control_handle;
1187-
control->max_total_segment_size = SIZE_MAX;
1187+
control->max_total_segment_size = (Size) -1;
11881188
control->total_segment_size = size;
11891189
memset(&control->segment_handles[0], 0,
11901190
sizeof(dsm_handle) * DSA_MAX_SEGMENTS);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy