* user.c (expand_format): Cast the argument to functions

for character classification to unsigned int.
(execute_menu_command): Likewise.
This commit is contained in:
Andrew V. Samoilov 2002-08-16 14:56:13 +00:00
parent 4fa385b62e
commit 7b867c0d5c
2 changed files with 7 additions and 3 deletions

View File

@ -4,6 +4,10 @@
Cyryllic with ncurses.
[HAS_ACS_AS_PCCHARS] (acs2pc_table): Make const.
* user.c (expand_format): Cast the argument to functions
for character classification to unsigned int.
(execute_menu_command): Likewise.
2002-08-15 Pavel Roskin <proski@gnu.org>
* treestore.c (tree_store_remove_entry): Don't use ts.check_name

View File

@ -181,7 +181,7 @@ char *expand_format (WEdit *edit_widget, char c, int quote)
if (c == '%')
return g_strdup ("%");
if (islower (c))
if (islower ((unsigned)c))
panel = cpanel;
else {
if (get_other_type () != view_listing)
@ -594,9 +594,9 @@ execute_menu_command (WEdit *edit_widget, char *commands)
}
} else if (expand_prefix_found){
expand_prefix_found = 0;
if (isdigit (*commands)) {
if (isdigit ((unsigned)*commands)) {
do_quote = atoi (commands);
while (isdigit (*commands))
while (isdigit ((unsigned)*commands))
commands++;
}
if (*commands == '{')