From 0f2523e53cd1ed297233628c1c84dea8feeb1d08 Mon Sep 17 00:00:00 2001 From: "K.Kosako" Date: Tue, 13 Feb 2018 09:41:49 +0900 Subject: [PATCH] don't use OnigCalloutArgs --- src/regexec.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/regexec.c b/src/regexec.c index d7c9229..28dfb15 100644 --- a/src/regexec.c +++ b/src/regexec.c @@ -952,7 +952,7 @@ typedef struct _StackType { } StackType; #ifdef USE_CALLOUT -/* Synchronize visible part of the type with OnigCalloutArgs */ + typedef struct { int in; int of; @@ -4904,9 +4904,12 @@ extern int onig_builtin_error(OnigCalloutArgs* args, void* user_data ARG_UNUSED) { long n; + CalloutArgs* a; + + a = (CalloutArgs* )args; - if (args->content != 0 && args->content_end > args->content) { - n = strtol((char* )args->content, 0, 10); + if (a->content != 0 && a->content_end > a->content) { + n = strtol((char* )a->content, 0, 10); if (n >= 0) { n = ONIGERR_INVALID_CALLOUT_BODY; } -- 2.40.0