Skip to content

Commit 8f47419

Browse files
author
Daniel Kroening
committed
off-by-one fix for universal character names
1 parent afe8aed commit 8f47419

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ansi-c/scanner.l

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ int make_identifier()
6262
p++;
6363
unsigned letter=hex_to_unsigned(p, digits);
6464
for(; *p!=0 && digits>0; digits--, p++);
65+
p--; // go back for p++ later
6566

6667
std::basic_string<unsigned> utf32;
6768
utf32+=letter;

0 commit comments

Comments
 (0)