summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--regerror.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 95c5f0ff86..8d1eca4dc2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/regerror.c b/regerror.c
index eb671386f1..358ce0ce5a 100644
--- a/regerror.c
+++ b/regerror.c
@@ -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);