@@ -357,15 +357,15 @@ private static CharPtr match(MatchState ms, CharPtr s, CharPtr p)
357
357
LUA_QL ( "%f" ) + " in pattern" ) ;
358
358
ep = classend ( ms , p ) ; /* points to what is next */
359
359
previous = ( s == ms . src_init ) ? '\0 ' : s [ - 1 ] ;
360
- if ( ( matchbracketclass ( ( byte ) ( previous ) , p , ep - 1 ) != 0 ) ||
361
- ( matchbracketclass ( ( byte ) ( s [ 0 ] ) , p , ep - 1 ) == 0 ) ) return null ;
360
+ if ( ( matchbracketclass ( previous , p , ep - 1 ) != 0 ) ||
361
+ ( matchbracketclass ( s [ 0 ] , p , ep - 1 ) == 0 ) ) return null ;
362
362
p = ep ; goto init ; /* else return match(ms, s, ep); */
363
363
}
364
364
default :
365
365
{
366
366
if ( isdigit ( ( char ) ( p [ 1 ] ) ) )
367
367
{ /* capture results (%0-%9)? */
368
- s = match_capture ( ms , s , ( byte ) ( p [ 1 ] ) ) ;
368
+ s = match_capture ( ms , s , p [ 1 ] ) ;
369
369
if ( s == null ) return null ;
370
370
p += 2 ; goto init ; /* else return match(ms, s, p+2) */
371
371
}
@@ -857,15 +857,15 @@ private static CharPtr scanformat(LuaState L, CharPtr strfrmt, CharPtr form)
857
857
while ( p [ 0 ] != '\0 ' && strchr ( FLAGS , p [ 0 ] ) != null ) p = p . next ( ) ; /* skip flags */
858
858
if ( ( uint ) ( p - strfrmt ) >= ( FLAGS . Length + 1 ) )
859
859
LuaLError ( L , "invalid format (repeated flags)" ) ;
860
- if ( isdigit ( ( byte ) ( p [ 0 ] ) ) ) p = p . next ( ) ; /* skip width */
861
- if ( isdigit ( ( byte ) ( p [ 0 ] ) ) ) p = p . next ( ) ; /* (2 digits at most) */
860
+ if ( isdigit ( p [ 0 ] ) ) p = p . next ( ) ; /* skip width */
861
+ if ( isdigit ( p [ 0 ] ) ) p = p . next ( ) ; /* (2 digits at most) */
862
862
if ( p [ 0 ] == '.' )
863
863
{
864
864
p = p . next ( ) ;
865
- if ( isdigit ( ( byte ) ( p [ 0 ] ) ) ) p = p . next ( ) ; /* skip precision */
866
- if ( isdigit ( ( byte ) ( p [ 0 ] ) ) ) p = p . next ( ) ; /* (2 digits at most) */
865
+ if ( isdigit ( p [ 0 ] ) ) p = p . next ( ) ; /* skip precision */
866
+ if ( isdigit ( p [ 0 ] ) ) p = p . next ( ) ; /* (2 digits at most) */
867
867
}
868
- if ( isdigit ( ( byte ) ( p [ 0 ] ) ) )
868
+ if ( isdigit ( p [ 0 ] ) )
869
869
LuaLError ( L , "invalid format (width or precision too long)" ) ;
870
870
form [ 0 ] = '%' ;
871
871
form = form . next ( ) ;
0 commit comments