Skip to content

Commit

Permalink
correct mistake in condition
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalak authored Feb 21, 2024
1 parent f8c0ebf commit b32db04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bld/wasm/c/direct.c
Original file line number Diff line number Diff line change
Expand Up @@ -2962,7 +2962,7 @@ bool LocalDef( token_buffer *tokbuf, token_idx i )
type = token_cmp( tokbuf->tokens[i].string_ptr, TOK_EXT_BYTE, TOK_EXT_TBYTE );
if( type == TOK_INVALID ) {
tmp = AsmGetSymbol( tokbuf->tokens[i].string_ptr );
if( tmp == NULL && tmp->state != SYM_STRUCT ) {
if( tmp == NULL || tmp->state != SYM_STRUCT ) {
AsmError( INVALID_QUALIFIED_TYPE );
return( RC_ERROR );
}
Expand Down

0 comments on commit b32db04

Please sign in to comment.