Skip to content

Commit

Permalink
cc: fix for issue #1274 (thanks @fafner2000)
Browse files Browse the repository at this point in the history
incorrectly handled additional comma after the items list
  • Loading branch information
jmalak committed Jun 2, 2024
1 parent be5c7f9 commit ed49e36
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bld/cc/c/cdinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1396,11 +1396,12 @@ static void InitStructUnionVar( SYMPTR sym, SYM_HANDLE sym_handle, int index, TY
MustRecog( T_RIGHT_BRACE );
if( CurToken == T_EOF )
break;
if( field->next_field == NULL )
break;
if( CurToken != T_RIGHT_BRACE ) {
MustRecog( T_COMMA );
}
if( field->next_field == NULL ) {
break;
}
}
}

Expand Down

0 comments on commit ed49e36

Please sign in to comment.