1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[search] cast

This commit is contained in:
Witold Filipczyk 2022-01-29 11:22:39 +01:00
parent 89952dfec4
commit 1e4014b2c0

View File

@ -432,7 +432,7 @@ struct is_in_range_regex_context {
static void static void
is_in_range_regex_match(struct regex_match_context *common_ctx, void *data) 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; int i;
if (common_ctx->s1[common_ctx->textlen].y < ctx->y || common_ctx->s1[common_ctx->textlen].y >= common_ctx->y2) 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 static void
get_searched_regex_match(struct regex_match_context *common_ctx, void *data) 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; int i;
for (i = 0; i < common_ctx->textlen; 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 static void
get_searched_regex_match_all(struct regex_match_context *common_ctx, void *data) 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)) if (!realloc_points(&ctx->points, ctx->len))
return; return;