From 1e4014b2c06ef1a95f80f9b61c2f29b5f64b44fa Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sat, 29 Jan 2022 11:22:39 +0100 Subject: [PATCH] [search] cast --- src/viewer/text/search.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/viewer/text/search.c b/src/viewer/text/search.c index 08facac0e..9336d40a1 100644 --- a/src/viewer/text/search.c +++ b/src/viewer/text/search.c @@ -432,7 +432,7 @@ struct is_in_range_regex_context { static void is_in_range_regex_match(struct regex_match_context *common_ctx, void *data) { - struct is_in_range_regex_context *ctx = data; + struct is_in_range_regex_context *ctx = (struct is_in_range_regex_context *)data; int i; if (common_ctx->s1[common_ctx->textlen].y < ctx->y || common_ctx->s1[common_ctx->textlen].y >= common_ctx->y2) @@ -751,7 +751,7 @@ struct get_searched_regex_context { static void get_searched_regex_match(struct regex_match_context *common_ctx, void *data) { - struct get_searched_regex_context *ctx = data; + struct get_searched_regex_context *ctx = (struct get_searched_regex_context *)data; int i; for (i = 0; i < common_ctx->textlen; i++) { @@ -780,7 +780,7 @@ get_searched_regex_match(struct regex_match_context *common_ctx, void *data) static void get_searched_regex_match_all(struct regex_match_context *common_ctx, void *data) { - struct get_searched_regex_context *ctx = data; + struct get_searched_regex_context *ctx = (struct get_searched_regex_context *)data; if (!realloc_points(&ctx->points, ctx->len)) return;