Handle leading plus sign in same kind as minus.

This commit is contained in:
dwarning 2018-11-23 09:42:30 +01:00 committed by Holger Vogt
parent 9937b5bed8
commit 49a3af54de
1 changed files with 1 additions and 3 deletions

View File

@ -285,9 +285,7 @@ INPgetUTok(char **line, char **token, int gobble)
break;
/* This is not complex enough to catch all errors, but it will
get the "good" parses */
if (*point == '+' && (signstate == 1 || signstate == 3))
break;
if (*point == '-') {
if (*point == '+' || *point == '-') {
if (signstate == 1 || signstate == 3)
break;
signstate += 1;