Module Name:    src
Committed By:   christos
Date:           Tue Sep  1 00:35:30 UTC 2020

Modified Files:
        src/external/historical/nawk/dist: tran.c

Log Message:
eat the sign, pointed out by uwe@


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/external/historical/nawk/dist/tran.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/historical/nawk/dist/tran.c
diff -u src/external/historical/nawk/dist/tran.c:1.13 src/external/historical/nawk/dist/tran.c:1.14
--- src/external/historical/nawk/dist/tran.c:1.13	Mon Aug 31 20:21:01 2020
+++ src/external/historical/nawk/dist/tran.c	Mon Aug 31 20:35:29 2020
@@ -404,6 +404,8 @@ static int checkstr(const char *s, const
 
 static int checkinfnan(const char *s)
 {
+	if (*s == '+' || *s == '-')
+		s++;
 	switch (tolower((unsigned char)*s)) {
 	case 'i':
 		return checkstr(s, "inf") || checkstr(s, "infinity");

Reply via email to