Skip to content

Commit

Permalink
Fixed wrong switch case type
Browse files Browse the repository at this point in the history
  • Loading branch information
fedi-nabli committed Mar 24, 2024
1 parent f6b30b6 commit 7b797d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions expressionable.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,11 @@ int expressionable_parse_token(struct expressionable* expressionable, struct tok
res = expressionable_parse_number(expressionable);
break;

case NODE_TYPE_IDENTIFIER:
case TOKEN_TYPE_IDENTIFIER:
res = expressionable_parse_identifier(expressionable);
break;

case NODE_TYPE_EXPRESSION:
case TOKEN_TYPE_OPERATOR:
res = expressionable_parse_exp(expressionable, token);
break;
}
Expand Down

0 comments on commit 7b797d7

Please sign in to comment.