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 <flibitijibibo@gmail.com>
Co-authored-by: David Jacewicz <david.jacewicz@protonmail.com>
Co-authored-by: tieuchanlong <tieuchanlong@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19022>
This commit is contained in:
Caleb Cornett
2023-01-11 10:43:25 -05:00
committed by Marge Bot
parent f9477770d8
commit d575fe8881

View File

@@ -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