Browse Source

fix comparison syntax in s_nan.c

Jeff Bezanson 12 years ago
parent
commit
4ebe327d24
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/s_nan.c

+ 1 - 1
src/s_nan.c

@@ -38,7 +38,7 @@
 
 #if !defined(__APPLE__) && !defined(__FreeBSD__)
 static __inline int digittoint(int c) {
-	if ('0' <= c <= '9')
+	if ('0' <= c && c <= '9')
 		return (c - '0');
 	else if ('A' <= c && c <= 'F')
 		return (c - 'A' + 10);