Skip to content

Commit

Permalink
Adjust style and add const in cct_next_token()
Browse files Browse the repository at this point in the history
  • Loading branch information
ldilley committed Sep 9, 2023
1 parent c623754 commit 8ebfbeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lexer.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ ConcoctToken cct_next_token(ConcoctLexer* lexer)
if(cct_hash_map_has_key(lexer->keyword_map, lexer->token_text))
{
void* void_pointer = cct_hash_map_get(lexer->keyword_map, lexer->token_text);
int* pointer_to_type = (int*) (&void_pointer);
const int* pointer_to_type = (int *)(&void_pointer);
type = *pointer_to_type;
}
else
Expand Down

0 comments on commit 8ebfbeb

Please sign in to comment.