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/50a8f1c508ce
branches:  trunk
changeset: 1013612:50a8f1c508ce
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 90e16f6c7bef -r 50a8f1c508ce 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