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:
@@ -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
|
||||
|
Reference in New Issue
Block a user