mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-27 09:47:10 +01:00
Fix the 'error' test suite
This commit is contained in:
parent
b05db2a6aa
commit
725afd8b55
2 changed files with 5 additions and 3 deletions
|
|
@ -61,7 +61,9 @@ int verify_int( char *str, int *value )
|
|||
continue;
|
||||
}
|
||||
|
||||
if( str[i] < '0' || str[i] > '9' )
|
||||
if( ! ( ( str[i] >= '0' && str[i] <= '9' ) ||
|
||||
( hex && ( ( str[i] >= 'a' && str[i] <= 'f' ) ||
|
||||
( str[i] >= 'A' && str[i] <= 'F' ) ) ) ) )
|
||||
{
|
||||
digits = 0;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue