[libc][NFC] change isblank and iscntrl from implicit casting
authorMichael Jones <michaelrj@google.com>
Wed, 13 Jan 2021 21:36:05 +0000 (21:36 +0000)
committerMichael Jones <michaelrj@google.com>
Wed, 13 Jan 2021 22:06:56 +0000 (22:06 +0000)
commitea8034ec35a9e3d6784d7e6f50617af3d87f6a9f
treeee62b1ee9102f3dc4c060966d0f0aa5c9941e60d
parent6077d55381a6aa3e947ef7abdc36a7515c598c8a
[libc][NFC] change isblank and iscntrl from implicit casting

isblank and iscntrl were casting an int to a char implicitly and this
was throwing errors under Fuchsia. I've added a static cast to resolve
this issue.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D94634
libc/src/ctype/isblank.cpp
libc/src/ctype/iscntrl.cpp