Remove a gccism

Pointed out in bug 656152.
This commit is contained in:
Matthias Clasen 2011-08-13 15:29:29 -04:00
parent 3c504e4765
commit be93370605

View File

@ -619,9 +619,23 @@ hexval (const gchar c)
{
switch (c)
{
case '0' ... '9':
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
return c - '0';
case 'a' ... 'f':
case 'a':
case 'b':
case 'c':
case 'd':
case 'e':
case 'f':
return 10 + c - 'a';
default:
return 0;