forked from Imagelibrary/binutils-gdb
-Wchar-subscripts cleanup
* listing.c (listing_newline): Use unsigned char variable, so calls to isascii,iscntrl are correct. * atof-generic.c (atof_generic): Cast arg to isdigit, et. al. with (unsigned char). * ecoff.c (ecoff_directive_ent,ecoff_stab): Ditto. * config/obj-elf.c (obj_elf_vtable_inherit): Ditto. * config/tc-mips.c (mips_ip,mips16_ip): Ditto. (my_getSmallExpression,get_number,s_mips_ent): Ditto.
This commit is contained in:
@@ -3122,7 +3122,8 @@ ecoff_directive_ent (ignore)
|
||||
++input_line_pointer;
|
||||
SKIP_WHITESPACE ();
|
||||
}
|
||||
if (isdigit (*input_line_pointer) || *input_line_pointer == '-')
|
||||
if (isdigit ((unsigned char) *input_line_pointer)
|
||||
|| *input_line_pointer == '-')
|
||||
(void) get_absolute_expression ();
|
||||
|
||||
demand_empty_rest_of_line ();
|
||||
@@ -3565,7 +3566,7 @@ ecoff_stab (sec, what, string, type, other, desc)
|
||||
listing_source_file (string);
|
||||
#endif
|
||||
|
||||
if (isdigit (*input_line_pointer)
|
||||
if (isdigit ((unsigned char) *input_line_pointer)
|
||||
|| *input_line_pointer == '-'
|
||||
|| *input_line_pointer == '+')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user