From: K.Kosako Date: Fri, 9 Feb 2018 05:36:11 +0000 (+0900) Subject: remove warnings for Windows X-Git-Tag: v6.8.0~309 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1c7b7619bb92ba14f0a9cfec20e2ef88dd7d2c25;p=onig remove warnings for Windows --- 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;