mirror of
https://github.com/transmission/transmission
synced 2024-12-25 17:17:31 +00:00
a little better id conversion
This commit is contained in:
parent
ea9de21173
commit
aa4eb92fbb
1 changed files with 4 additions and 3 deletions
|
@ -28,10 +28,11 @@ static int charToInt( char character );
|
|||
|
||||
static int charToInt( char character )
|
||||
{
|
||||
int value = character - '0';
|
||||
|
||||
int value;
|
||||
if( character >= 'A' && character <= 'Z' )
|
||||
value -= 7;
|
||||
value = 10 + character - 'A';
|
||||
else
|
||||
value = character - '0';
|
||||
|
||||
return value;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue