================ @@ -148,7 +148,7 @@ #endif // INT_MAX #ifndef UINT_MAX -#define UINT_MAX (~0U) +#define UINT_MAX (INT_MAX * 2U + 1U) ---------------- lntue wrote: shall we explicitly cast `((unsigned) INT_MAX)`? https://github.com/llvm/llvm-project/pull/95279