Skip to content

Commit

Permalink
Merge pull request #254 from alliedmodders/bug-6226
Browse files Browse the repository at this point in the history
Fix incorrect error line show for incorrect return value on forwards (bug 6226, r=asherkin).
  • Loading branch information
psychonic committed Jan 28, 2015
2 parents b3bb373 + d9ce824 commit 2292515
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sourcepawn/compiler/sc1.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2292515

Please sign in to comment.