(xuflds): Fix confusing diagnostics on unexpected EOF.
This commit is contained in:
parent
656b726a24
commit
95a2523b9f
1 changed files with 2 additions and 0 deletions
|
@ -117,6 +117,8 @@ xuflds(FILE *fp, struct value values[])
|
||||||
ungetc(ch, fp);
|
ungetc(ch, fp);
|
||||||
|
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
|
case EOF:
|
||||||
|
return gripe("Unexpected EOF");
|
||||||
case '+': case '-': case '.':
|
case '+': case '-': case '.':
|
||||||
case '0': case '1': case '2': case '3': case '4':
|
case '0': case '1': case '2': case '3': case '4':
|
||||||
case '5': case '6': case '7': case '8': case '9':
|
case '5': case '6': case '7': case '8': case '9':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue