Skip to content

Commit

Permalink
Make sure we don't throw things away while collecting the signature, …
Browse files Browse the repository at this point in the history
…though
  • Loading branch information
focalintent committed Feb 24, 2016
1 parent e304e5f commit fe0ba95
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions c.c
Original file line number Diff line number Diff line change
Expand Up @@ -1395,7 +1395,9 @@ static void skipToMatch (const char *const pair)
// watch out for '<<' in template arguments
int x = cppGetc ();
if(c == '<' && x == '<') {
// we've found a << - do nothing
// we've found a << - do nothing except record the signature
if (CollectingSignature)
vStringPut(Signature, x);
} else {
cppUngetc (x);
++matchLevel;
Expand All @@ -1411,7 +1413,9 @@ static void skipToMatch (const char *const pair)
// watch out for '>>' in template arguments
int x = cppGetc ();
if(c == '>' && x == '>') {
// we've found a >> in a template - skip it
// we've found a >> - do nothing except record the signature
if (CollectingSignature)
vStringPut(Signature, x);
} else {
cppUngetc (x);
--matchLevel;
Expand Down

0 comments on commit fe0ba95

Please sign in to comment.