From 1c7b7619bb92ba14f0a9cfec20e2ef88dd7d2c25 Mon Sep 17 00:00:00 2001 From: "K.Kosako" Date: Fri, 9 Feb 2018 14:36:11 +0900 Subject: [PATCH] remove warnings for Windows --- src/regparse.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/regparse.c b/src/regparse.c index e8d806f..3ccbf24 100644 --- a/src/regparse.c +++ b/src/regparse.c @@ -6115,8 +6115,8 @@ parse_callout_of_code(Node** np, int cterm, UChar** src, UChar* end, ScanEnv* en r = node_new_callout(np, ONIG_CALLOUT_OF_CODE, -1, dirs, env); if (r != 0) return r; - GIMMICK_(*np)->start = code_start - env->pattern; - GIMMICK_(*np)->end = code_end - env->pattern; + GIMMICK_(*np)->start = (int )(code_start - env->pattern); + GIMMICK_(*np)->end = (int )(code_end - env->pattern); *src = p; return 0; @@ -6187,8 +6187,8 @@ parse_callout_of_name(Node** np, int cterm, UChar** src, UChar* end, ScanEnv* en r = node_new_callout(np, ONIG_CALLOUT_OF_NAME, id, dirs, env); if (r != ONIG_NORMAL) return r; - GIMMICK_(*np)->start = code_start - env->pattern; - GIMMICK_(*np)->end = code_end - env->pattern; + GIMMICK_(*np)->start = (int )(code_start - env->pattern); + GIMMICK_(*np)->end = (int )(code_end - env->pattern); *src = p; return 0; -- 2.40.0