Skip to contentSkip to conversation

qtest: fix hex2nib for capital characters

PATCH Applied Sergey Fedorov 2 participants 2 messages May 27, 2014 – May 28, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qtest: fix hex2nib for capital characters

---
 qtest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
qtest.c +1 -1
index 2aba20d..87ccd62 100644
@@ -148,7 +148,7 @@ static int hex2nib(char ch)
     } else if (ch >= 'a' && ch <= 'f') {
         return 10 + (ch - 'a');
     } else if (ch >= 'A' && ch <= 'F') {
-        return 10 + (ch - 'a');
+        return 10 + (ch - 'A');
     } else {
         return -1;
     }
Signature · 1 line
1.9.1