Przeglądaj źródła

fix comparison syntax in s_nan.c

Jeff Bezanson 12 lat temu
rodzic
commit
4ebe327d24
1 zmienionych plików z 1 dodań i 1 usunięć
  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);