Skip to content

Commit

Permalink
type mismatch fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Y_Less committed Nov 14, 2022
1 parent d7a093f commit 81b4a02
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source/compiler/sc1.c
Original file line number Diff line number Diff line change
Expand Up @@ -3923,7 +3923,7 @@ static void funcstub(int fnative)
if (numdim!=sym->child->dim.array.level+1) {
error(25); /* function heading differs from prototype */
} else {
unsigned int i=0;
int i=0;
sub=sym->child;
do {
if (dim[i]!=sub->dim.array.length) {
Expand Down
6 changes: 3 additions & 3 deletions source/compiler/sc5.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,9 @@ static int errwarn;
*/
SC_FUNC int error(long number,...)
{
static char *prefix[3]={ "error", "fatal error", "warning" };
static int lastline,errorcount;
static short lastfile;
static char *prefix[3]={ "error", "fatal error", "warning" };
static int lastline,errorcount;
static short lastfile;
char *msg,*pre;
va_list argptr;
char string[128];
Expand Down

0 comments on commit 81b4a02

Please sign in to comment.