Details
- Reviewers
sivachandra - Group Reviewers
Restricted Project Restricted Project - Commits
- rG9cdd4ea06f09: [libc][NFC] Add explicit casts to ctype functions
Diff Detail
Event Timeline
This patch causes of number of failures in ctype tests. I have not investigated but this change does operations on numbers of different sizes and hence is leading to unexpected results.
Sorry for the delay, its been hectic for me. I will test this out and submit if everything looks good by the end of the day today (US pacific time).
The isprint test is still failing. I have left a comment inline explaining why.
BTW, if you need help with building/testing your patches, let me know and I can give you few instructions. Or, you can lookup the command from the builder logs, from here for example: https://lab.llvm.org/buildbot/#/builders/78/builds/16544
libc/src/ctype/isprint.cpp | ||
---|---|---|
19 ↗ | (On Diff #366672) | I think this is still incorrect. For ch - ' ', the operands get promoted to the int type making the predicate evaluate to true for c less than ' '. |