Skip to content

Commit

Permalink
Merge pull request Unidata#2488 from WardF/gh2487.wif
Browse files Browse the repository at this point in the history
Address jump-misses-init issue.
  • Loading branch information
WardF authored Aug 24, 2022
2 parents 12a9083 + e3c43de commit 9cc8831
Show file tree
Hide file tree
Showing 4 changed files with 187 additions and 197 deletions.
3 changes: 2 additions & 1 deletion ncgen/ncgen.l
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,8 @@ done: return 0;
if(tag == NC_NAT) {
sprintf(errstr,"Illegal integer suffix: %s",stag);
yyerror(errstr);
goto done;
//goto done;
return 0;
}
yytext[slen - strlen(stag)] = '\0';
if(xlen > 16) { /* truncate hi order digits */
Expand Down
3 changes: 2 additions & 1 deletion ncgen/ncgenl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2406,7 +2406,8 @@ YY_RULE_SETUP
if(tag == NC_NAT) {
sprintf(errstr,"Illegal integer suffix: %s",stag);
yyerror(errstr);
goto done;
//goto done;
return 0;
}
yytext[slen - strlen(stag)] = '\0';
if(xlen > 16) { /* truncate hi order digits */
Expand Down
Loading

0 comments on commit 9cc8831

Please sign in to comment.