Skip to content

Commit 97c95dc

Browse files
Don't use a constant value for SIZE_T_MAX.
1 parent 930ac42 commit 97c95dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shims/linux_stubs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ typedef void (*dispatch_mach_msg_destructor_t)(void*);
7272

7373
// SIZE_T_MAX should not be hardcoded like this here.
7474
#ifndef SIZE_T_MAX
75-
#define SIZE_T_MAX (0x7fffffff)
75+
#define SIZE_T_MAX (~(size_t)0)
7676
#endif
7777

7878
// Define to 0 the NOTE_ values that are not present on Linux.

0 commit comments

Comments
 (0)