Skip to content

Commit

Permalink
cc: fix for issue open-watcom#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 authored and GateLinker committed Oct 1, 2024
1 parent ba59242 commit dae726b
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 dae726b

Please sign in to comment.