Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/historical/nawk/dist eat the sign, pointed out by uwe@



details:   https://anonhg.NetBSD.org/src/rev/800e306a423a
branches:  trunk
changeset: 943365:800e306a423a
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Sep 01 00:35:29 2020 +0000

description:
eat the sign, pointed out by uwe@

diffstat:

 external/historical/nawk/dist/tran.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r b3ad1f700a6d -r 800e306a423a external/historical/nawk/dist/tran.c
--- a/external/historical/nawk/dist/tran.c      Tue Sep 01 00:21:01 2020 +0000
+++ b/external/historical/nawk/dist/tran.c      Tue Sep 01 00:35:29 2020 +0000
@@ -404,6 +404,8 @@
 
 static int checkinfnan(const char *s)
 {
+       if (*s == '+' || *s == '-')
+               s++;
        switch (tolower((unsigned char)*s)) {
        case 'i':
                return checkstr(s, "inf") || checkstr(s, "infinity");



Home | Main Index | Thread Index | Old Index