The value passed to the functions shall be the value of an unsigned char or EOF. It is implementation-defined if the char type is signed or unsigned. Cast to unsigned char to avoid undefined behaviour on systems where char is signed.
This cast is already present in other parts of the code base.
It seems pretty nuts to me that you can't safely use functions explicitly designed to test characters on values of type char. But I guess that's the weird history of the C library for you.
The value passed to the functions shall be the value of an unsigned char or EOF. It is implementation-defined if the char type is signed or unsigned. Cast to unsigned char to avoid undefined behaviour on systems where char is signed.
This cast is already present in other parts of the code base.
Close #71.