mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
* regerror.c (onig_error_code_to_str, onig_snprintf_with_pattern):
fixed type. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
62f073a386
commit
01f3f86472
2 changed files with 6 additions and 3 deletions
|
@ -309,7 +309,7 @@ onig_error_code_to_str(s, code, va_alist)
|
|||
}
|
||||
|
||||
va_end(vargs);
|
||||
return len;
|
||||
return (int)len;
|
||||
}
|
||||
|
||||
|
||||
|
@ -340,7 +340,7 @@ onig_snprintf_with_pattern(buf, bufsize, enc, pat, pat_end, fmt, va_alist)
|
|||
|
||||
need = (pat_end - pat) * 4 + 4;
|
||||
|
||||
if (n + need < bufsize) {
|
||||
if (n + need < (size_t)bufsize) {
|
||||
strcat((char* )buf, ": /");
|
||||
s = buf + onigenc_str_bytelen_null(ONIG_ENCODING_ASCII, buf);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue