Merge pull request #254 from alliedmodders/bug-6226

Fix incorrect error line show for incorrect return value on forwards (bug 6226, r=asherkin).
This commit is contained in:
Nicholas Hastings 2015-01-28 14:45:06 -05:00
commit 2292515315

View File

@ -5534,7 +5534,7 @@ static int newfunc(declinfo_t *decl, const int *thistag, int fpublic, int fstati
// Check that return tags match.
if ((sym->usage & uPROTOTYPED) && !compare_tag(sym->tag, decl->type.tag)) {
int old_fline = fline;
fline = sym->lnumber;
fline = funcline;
error(25);
fline = old_fline;
}