a little better id conversion

This commit is contained in:
Mitchell Livingston 2006-12-16 02:39:12 +00:00
parent ea9de21173
commit aa4eb92fbb
1 changed files with 4 additions and 3 deletions

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