pc(1): _ handling in numbers was broken at some point; restore documented behaviour
This commit is contained in:
parent
07284c41f6
commit
0c3ba556a2
|
@ -527,7 +527,7 @@ yylex(void)
|
|||
if(c == '\n') prompted = 0;
|
||||
if(isdigit(c)){
|
||||
for(p = buf, *p++ = c; c = Bgetc(in), isalnum(c) || c == '_'; )
|
||||
if(p < buf + sizeof(buf) - 1)
|
||||
if(p < buf + sizeof(buf) - 1 && c != '_')
|
||||
*p++ = c;
|
||||
*p = 0;
|
||||
Bungetc(in);
|
||||
|
|
Loading…
Reference in a new issue