From: K.Kosako Date: Fri, 28 Sep 2018 02:36:38 +0000 (+0900) Subject: add casting for escape warning in Windows X-Git-Tag: v6.9.1~18^2~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2de92207d0f6ec2b55cace80ea5b7aad525a15ce;p=onig add casting for escape warning in Windows --- diff --git a/src/regcomp.c b/src/regcomp.c index 5ac8b19..dd2bfa7 100644 --- a/src/regcomp.c +++ b/src/regcomp.c @@ -4626,7 +4626,7 @@ set_sunday_quick_search_skip_table(UChar* s, UChar* end, OnigEncoding enc, UChar* q = p + (ONIGENC_MBC_MINLEN(enc) - 1); while (q > p) { if (*q != '\0') { - offset = q - p + 1; + offset = (int )(q - p + 1); break; } q--;