mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05: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
|
@ -1,4 +1,7 @@
|
|||
Tue Sep 22 16:26:21 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Tue Sep 22 16:27:49 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* regerror.c (onig_error_code_to_str, onig_snprintf_with_pattern):
|
||||
fixed type.
|
||||
|
||||
* regparse.c (st_str_end_key, str_end_cmp, str_end_hash):
|
||||
constified.
|
||||
|
|
|
@ -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…
Reference in a new issue