Patch by Ben Craig.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
This LGTM.
Although wouldn't unsigned int be the correct choice on all platforms? Because the issue only arises because sometimes uint32_t is unsigned long instead of unsigned int?
Comment Actions
The standard only guarantees that unsigned int is >= 16 bit so IIUC in that case it can't be compared with char32_t here.
C++17 [basic.fundamental] => C99 5.2.4.2.1
I'm not a language lawyer, I had to look this one up. But AFAICT that's why unsigned int is insufficiently portable for this test.