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/aefad4f8459f
branches:  trunk
changeset: 975577:aefad4f8459f
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 569bfd4ccf60 -r aefad4f8459f 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