@@ -796,7 +796,7 @@ decode_ANSI_colour(const char *cs)
796796WORD result = csbi .wAttributes ;
797797while (* cs )
798798 {
799- if (isdigit (* cs ))
799+ if (isdigit (( unsigned char )( * cs ) ))
800800 {
801801 int code = atoi (cs );
802802 if (code == 1 ) result |= 0x08 ;
@@ -810,7 +810,7 @@ while (*cs)
810810 else if (code >= 90 && code <= 97 ) result = (result & 0xF0 ) | BGR_RGB (code - 90 ) | 0x08 ;
811811 else if (code >= 100 && code <= 107 ) result = (result & 0x0F ) | (BGR_RGB (code - 100 ) << 4 ) | 0x80 ;
812812
813- while (isdigit (* cs )) cs ++ ;
813+ while (isdigit (( unsigned char )( * cs ) )) cs ++ ;
814814 }
815815 if (* cs ) cs ++ ;
816816 }
@@ -1989,7 +1989,7 @@ switch (*(++string))
19891989 case '{' :
19901990 brace = TRUE;
19911991 string ++ ;
1992- if (!isdigit (* string )) /* Syntax error: a decimal number required. */
1992+ if (!isdigit (( unsigned char )( * string ) )) /* Syntax error: a decimal number required. */
19931993 {
19941994 if (!callout )
19951995 fprintf (stderr , "pcre2grep: Error in output text at offset %d: %s\n" ,
@@ -4036,7 +4036,7 @@ for (i = 1; i < argc; i++)
40364036
40374037 if (op -> type == OP_OP_NUMBER || op -> type == OP_OP_NUMBERS )
40384038 {
4039- if (isdigit ((unsigned char )s [1 ])) break ;
4039+ if (isdigit ((unsigned char )( s [1 ]) )) break ;
40404040 }
40414041 else /* Check for an option with data */
40424042 {
@@ -4520,7 +4520,7 @@ for (fn = file_lists; fn != NULL; fn = fn->next)
45204520 {
45214521 int frc ;
45224522 char * end = buffer + (int )strlen (buffer );
4523- while (end > buffer && isspace (end [-1 ])) end -- ;
4523+ while (end > buffer && isspace (( unsigned char )( end [-1 ]) )) end -- ;
45244524 * end = 0 ;
45254525 if (* buffer != 0 )
45264526 {
0 commit comments