]> granicus.if.org Git - onig/blobdiff - src/regext.c
add onig_get_capture_range_in_callout()
[onig] / src / regext.c
index 62a557ce9a536a85e1231ac759606df92494d3ae..996d043f568ef62ab6868b771ce9e418acfa70a8 100644 (file)
@@ -95,7 +95,7 @@ static int
 conv_encoding(OnigEncoding from, OnigEncoding to, const UChar* s, const UChar* end,
               UChar** conv, UChar** conv_end)
 {
-  int len = end - s;
+  int len = (int )(end - s);
 
   if (to == ONIG_ENCODING_UTF16_BE) {
     if (from == ONIG_ENCODING_ASCII || from == ONIG_ENCODING_ISO_8859_1) {