* file.c (do_transform_source): Cast the argument to functions
for character classification to unsigned int. * main.c (handle_args): Likewise. * util.c (size_trunc_sep): Likewise. (skip_numbers): Likewise.
Этот коммит содержится в:
родитель
e385a9c9ab
Коммит
74288460f5
@ -1,5 +1,11 @@
|
||||
2002-07-03 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* file.c (do_transform_source): Cast the argument to functions
|
||||
for character classification to unsigned int.
|
||||
* main.c (handle_args): Likewise.
|
||||
* util.c (size_trunc_sep): Likewise.
|
||||
(skip_numbers): Likewise.
|
||||
|
||||
* subshell.c (sigchld_handler): Remove subshell_pty from the
|
||||
channel list if the subshell has died.
|
||||
|
||||
|
@ -193,7 +193,7 @@ do_transform_source (FileOpContext *ctx, unsigned char *source)
|
||||
switch (ctx->dest_mask [j]){
|
||||
case '\\':
|
||||
j++;
|
||||
if (! isdigit (ctx->dest_mask [j])){
|
||||
if (! isdigit ((unsigned char) ctx->dest_mask [j])){
|
||||
/* Backslash followed by non-digit */
|
||||
switch (ctx->dest_mask [j]){
|
||||
case 'U':
|
||||
|
@ -2497,7 +2497,7 @@ handle_args (int argc, char *argv [])
|
||||
edit_one_file = "";
|
||||
edit_one_file_start_line = 1;
|
||||
if (tmp) {
|
||||
if (*tmp == '+' && isdigit (tmp[1])){
|
||||
if (*tmp == '+' && isdigit ((unsigned char) tmp[1])){
|
||||
int start_line = atoi (tmp);
|
||||
if (start_line > 0) {
|
||||
char *file = poptGetArg (ctx);
|
||||
|
@ -254,7 +254,7 @@ char *size_trunc_sep (double size)
|
||||
p += strlen (p) - 1;
|
||||
d = x + sizeof (x) - 1;
|
||||
*d-- = 0;
|
||||
while (p >= y && isalpha (*p))
|
||||
while (p >= y && isalpha ((unsigned char) *p))
|
||||
*d-- = *p--;
|
||||
for (count = 0; p >= y; count++){
|
||||
if (count == 3){
|
||||
@ -781,7 +781,7 @@ char *skip_separators (char *s)
|
||||
char *skip_numbers (char *s)
|
||||
{
|
||||
for (;*s; s++)
|
||||
if (!isdigit (*s))
|
||||
if (!isdigit ((unsigned int) *s))
|
||||
break;
|
||||
return s;
|
||||
}
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user