Skip to content

Commit

Permalink
fix swdev-385680 [ORNLA-151] amdflang preprocessor confused by + on C…
Browse files Browse the repository at this point in the history
…rusher

Change-Id: Iad50639b90bfe0291184c0d4dffd36a733453c09
  • Loading branch information
ronlieb committed May 15, 2023
1 parent 0ab1484 commit 386dda0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tools/flang1/flang1exe/accpp.c
Original file line number Diff line number Diff line change
Expand Up @@ -4210,12 +4210,16 @@ nextok(char *tokval, int truth)
for (;;) {
if (*p == 'E' || *p == 'e') {
++p;
if (*p == '+' || *p == '-')
if (*p == '+' || *p == '-') {
++p;
if (isident(*p)) { --p; break;}
}
} else if (*p == 'P' || *p == 'p') {
++p;
if (*p == '+' || *p == '-')
if (*p == '+' || *p == '-') {
++p;
if (isident(*p)) { --p; break;}
}
} else if (*p == '.' || isident(*p))
++p;
else
Expand Down

0 comments on commit 386dda0

Please sign in to comment.