shithub: neatmkfn

Download patch

ref: 24e647b0896ce29513781ca6247636a06959127e
parent: a0aae4a433111694c720f8924a500e1bb7ad0266
author: Ali Gholami Rudi <ali@rudi.ir>
date: Fri Dec 5 14:07:18 EST 2014

trfn: tolower() is unnecessary in hexval()

--- a/trfn.c
+++ b/trfn.c
@@ -93,8 +93,8 @@
 	int n = 0;
 	int i;
 	for (i = 0; i < len; i++) {
-		if (s[i] && strchr(digs, tolower(s[i])))
-			n = n * 16 + (strchr(digs, tolower(s[i])) - digs);
+		if (s[i] && strchr(digs, s[i]))
+			n = n * 16 + (strchr(digs, s[i]) - digs);
 		else
 			break;
 	}