Add cast to libab_result in ll_foreach call.

This commit is contained in:
Danila Fedorin 2018-02-10 17:21:45 -08:00
parent d79d001013
commit 3254f5741f

View File

@ -99,8 +99,8 @@ libab_result lexer_lex(lexer* lexer, const char* string, ll* lex_into) {
eval_all(string, 0, &lexer->config, &raw_matches)); eval_all(string, 0, &lexer->config, &raw_matches));
if(result == LIBAB_SUCCESS) { if(result == LIBAB_SUCCESS) {
result = ll_foreach(&raw_matches, NULL, compare_always, result = (libab_result) ll_foreach(&raw_matches, NULL, compare_always,
_lexer_foreach_convert_match, &state); _lexer_foreach_convert_match, &state);
} }
if(result != LIBAB_SUCCESS) { if(result != LIBAB_SUCCESS) {