ISO/IEC 9899:1999 (C Standard), §7.4 Character handling <ctype.h>: In all cases the argument is an int, the value of which shall be representable as an unsigned char or shall equal the value of the macro EOF. If the argument has any other value, the behavior is undefined. So add a cast to unsigned char to make sure we do not trigger UB. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| Kconfig | ||
| Kconfig.fake | ||
| Kconfig.fixed | ||
| Kconfig.npm6001 | ||
| Kconfig.pca9420 | ||
| regulator_common.c | ||
| regulator_fake.c | ||
| regulator_fixed.c | ||
| regulator_npm6001.c | ||
| regulator_pca9420.c | ||
| regulator_shell.c | ||