diff options
author | Explorer09 <explorer09@gmail.com> | 2024-04-15 21:48:43 +0800 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2024-04-26 19:35:15 +0200 |
commit | d2ec14fa4ab944760d3e6740d8ac3ae540dd12a0 (patch) | |
tree | 67dd84aa2a09805232cd45d4a17bd7a70655b9b1 /ScreenManager.c | |
parent | e54871b6795ac59ee7f98ecfbec50368513d0c6f (diff) |
Fix GCC build warning in NetBSD 10
The warning message is
"array subscript has type 'char' [-Wchar-subscripts]"
Fix this by casting to 'unsigned char' before passing any character to a
`<ctype.h>` function.
Also add an assertion to RichString_writeFromAscii() to ensure the
characters in the string are all in ASCII range.
Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
Diffstat (limited to 'ScreenManager.c')
0 files changed, 0 insertions, 0 deletions