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 07:39:12 +0000 (11:39 +0400)
commit3dcac9d3014f587912e65382fe637075c0a563e0
tree31f1439d2c51cb87c2852806b652ea8d102f0093
parent998500eb0cc051694ddaffd9a37dc7d108783d74
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