[glib] Remove a gccism
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Remove a gccism
- Date: Sat, 13 Aug 2011 19:32:24 +0000 (UTC)
commit be933706059a8d92fb8858219f5936f332b68f4a
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Aug 13 15:29:29 2011 -0400
Remove a gccism
Pointed out in bug 656152.
glib/tests/checksum.c | 18 ++++++++++++++++--
1 files changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/glib/tests/checksum.c b/glib/tests/checksum.c
index a58d8a0..eb170e2 100644
--- a/glib/tests/checksum.c
+++ b/glib/tests/checksum.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]