]> granicus.if.org Git - onig/commitdiff
add casting for escape warning in Windows
authorK.Kosako <kosako@sofnec.co.jp>
Fri, 28 Sep 2018 02:36:38 +0000 (11:36 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Fri, 28 Sep 2018 02:36:38 +0000 (11:36 +0900)
src/regcomp.c

index 5ac8b19fcd0da01b7552f4d33b8c1e1716b39808..dd2bfa7ae76bf977c44bc7b39726802b2cd5ece9 100644 (file)
@@ -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--;