Module: Mesa
Branch: main
Commit: d575fe8881dd90c5f3b1f78e52c8932dda89a202
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d575fe8881dd90c5f3b1f78e52c8932dda89a202

Author: Caleb Cornett <[email protected]>
Date:   Wed Jan 11 10:43:25 2023 -0500

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 <[email protected]>
Co-authored-by: David Jacewicz <[email protected]>
Co-authored-by: tieuchanlong <[email protected]>
Reviewed-by: Jesse Natalie <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19022>

---

 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

Reply via email to