Files
freebsd/lib
ShengYi Hung 1d21e67e72 libthr: Do not rely on UB in counter
counter + 1 > 0 is a undefined behavior and nobody guarantee that it
will be honestly perform by the compiler that counter + 1 will always be
INT_MIN. We switch to INT_MAX check instead to provide a deterministic
result.

Reviewed by:    kib
MFC after:      2 weeks
Differential Revision: https://reviews.freebsd.org/D60426
2026-10-08 03:59:10 +11:00
..
2026-09-22 08:23:32 -07:00
2026-01-13 10:19:04 -05:00
2026-09-01 15:28:28 +00:00
2026-01-06 12:56:50 -05:00
2026-09-13 18:09:38 -07:00
2026-09-01 14:49:24 +02:00
2025-10-03 19:46:55 +02:00
2026-03-15 00:41:29 -03:00
2025-11-24 10:47:10 -05:00
2025-08-08 13:27:26 -05:00
2026-09-16 14:22:09 +00:00
2025-09-30 09:14:05 +01:00
2026-01-06 04:26:53 +00:00
2026-03-13 23:49:53 +00:00
2026-04-08 14:22:45 -07:00
2026-01-15 07:28:28 +01:00
2026-09-15 10:22:38 -04:00