Add cast to libab_result in ll_foreach call.
This commit is contained in:
parent
d79d001013
commit
3254f5741f
|
@ -99,8 +99,8 @@ libab_result lexer_lex(lexer* lexer, const char* string, ll* lex_into) {
|
|||
eval_all(string, 0, &lexer->config, &raw_matches));
|
||||
|
||||
if(result == LIBAB_SUCCESS) {
|
||||
result = ll_foreach(&raw_matches, NULL, compare_always,
|
||||
_lexer_foreach_convert_match, &state);
|
||||
result = (libab_result) ll_foreach(&raw_matches, NULL, compare_always,
|
||||
_lexer_foreach_convert_match, &state);
|
||||
}
|
||||
|
||||
if(result != LIBAB_SUCCESS) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user