From 3254f5741f138328c545eb2605b5dea6be9e388b Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sat, 10 Feb 2018 17:21:45 -0800 Subject: [PATCH] Add cast to libab_result in ll_foreach call. --- src/lexer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lexer.c b/src/lexer.c index 4266198..6f62281 100644 --- a/src/lexer.c +++ b/src/lexer.c @@ -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) {