diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-12-14 16:55:10 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-12-14 16:55:10 +0100 |
commit | 98ab313fe496ae7c792db29c80bf6b23347484ff (patch) | |
tree | 3e140e51f430a422b6dd4568fec4884c280b6876 /src/regerror.c | |
parent | b62fc1758f4ae8459e6d7e8386ca547274b4daa2 (diff) |
New upstream version 6.7.0upstream/6.7.0
Diffstat (limited to 'src/regerror.c')
-rw-r--r-- | src/regerror.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/regerror.c b/src/regerror.c index c0d2346..e7d2570 100644 --- a/src/regerror.c +++ b/src/regerror.c @@ -236,7 +236,7 @@ static int to_ascii(OnigEncoding enc, UChar *s, UChar *end, *is_over = ((p < end) ? 1 : 0); } else { - len = MIN((end - s), buf_size); + len = MIN((int )(end - s), buf_size); xmemcpy(buf, s, (size_t )len); *is_over = ((buf_size < (end - s)) ? 1 : 0); } @@ -300,7 +300,7 @@ onig_error_code_to_str(s, code, va_alist) } } *p = '\0'; - len = p - s; + len = (int )(p - s); break; default: @@ -340,7 +340,7 @@ onig_snprintf_with_pattern(buf, bufsize, enc, pat, pat_end, fmt, va_alist) n = xvsnprintf((char* )buf, bufsize, (const char* )fmt, args); va_end(args); - need = (pat_end - pat) * 4 + 4; + need = (int )(pat_end - pat) * 4 + 4; if (n + need < bufsize) { xstrcat((char* )buf, ": /", bufsize); |