From d575fe8881dd90c5f3b1f78e52c8932dda89a202 Mon Sep 17 00:00:00 2001 From: Caleb Cornett Date: Wed, 11 Jan 2023 10:43:25 -0500 Subject: [PATCH] futex: Change INT_MAX to INT32_MAX. Some platforms (i.e. Xbox) don't have INT_MAX, so use the stdint constant instead. Co-authored-by: Ethan Lee Co-authored-by: David Jacewicz Co-authored-by: tieuchanlong Reviewed-by: Jesse Natalie Part-of: --- src/util/futex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/futex.c b/src/util/futex.c index fb55ad46a6f..fb6072e8f4c 100644 --- a/src/util/futex.c +++ b/src/util/futex.c @@ -127,7 +127,7 @@ int futex_wake(uint32_t *addr, int count) /* All current callers fall into one of these buckets, and we'll get the semantics * wrong if someone tries to be more clever. */ - assert(count == 1 || count == INT_MAX); + assert(count == 1 || count == INT32_MAX); if (count == 1) WakeByAddressSingle(addr); else