1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00

a little better id conversion

This commit is contained in:
Mitchell Livingston 2006-12-16 02:39:12 +00:00
parent ea9de21173
commit aa4eb92fbb

View file

@ -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;
}