]> granicus.if.org Git - gc/commit
Fix signedness of char values passed to isspace, iscntrl, isxdigit
authorIvan Maidanski <ivmai@mail.ru>
Sun, 15 Jun 2014 07:39:12 +0000 (11:39 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 15 Jun 2014 09:12:25 +0000 (13:12 +0400)
commit58cce9853c9eee3c5390977c0949414874eba4c5
treeafd359071c805ecb937c0bd4c2e0de6aa2f60350
parentff2fac613ffd499c7424fb57ae7f1dadf7329c5f
Fix signedness of char values passed to isspace, iscntrl, isxdigit
(eliminate 'array subscript has type char' GCC warning)

* cord/tests/de_win.c (WinMain, plain_chars, control_chars): Cast char
value to unsigned char when passed to isspace(), iscntrl().
* os_dep.c (GC_parse_map_entry): Change type of "start_start",
"end_start", "maj_dev_start", "p" local variables from char* to
unsgined char* (as isspace(), isxdigit() expect non-negative values);
insert casts between char* and unsigned char* where needed.
* os_dep.c (GC_parse_map_entry): Remove "endp" local variable (use "p"
variable directly instead).
cord/tests/de_win.c
os_dep.c