Further size savings - no need to make call for 0-9

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16678 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Steve Gotthardt 2008-03-15 18:36:36 +00:00
parent c0fb5b815e
commit 7757bcfdd6

View file

@ -1083,7 +1083,7 @@ void setvol(void)
static int hex2dec(int c) static int hex2dec(int c)
{ {
return (((c) >= '0' && ((c) <= '9')) ? (toupper(c)) - '0' : return (((c) >= '0' && ((c) <= '9')) ? (c) - '0' :
(toupper(c)) - 'A' + 10); (toupper(c)) - 'A' + 10);
} }