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/9eeac51ecff8
branches:  trunk
changeset: 938069:9eeac51ecff8
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 b7b0fae628c7 -r 9eeac51ecff8 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