[libc-commits] [libc] [libc] Fix definition of `UINT_MAX` in limits.h (PR #95279)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Wed Jun 12 11:13:51 PDT 2024


jhuber6 wrote:

> I see. Perhaps just `#define UINT_MAX 0xffffffffU`

Some targets have `UINT_MAX` as something other than 32-bits, The compiler defines `__INT_MAX__` which tends to tell us the base width of an int, and thus an unsigned is just twice that plus one.

https://github.com/llvm/llvm-project/pull/95279


More information about the libc-commits mailing list