aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--error.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index ea35b6ed6c..62b8a89217 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -16,6 +16,7 @@ Thu Jul 9 21:56:59 2009 NARUSE, Yui <naruse@ruby-lang.org>
* marshal.c (r_object0): replace \u by u when the regexp is
made by Ruby 1.8. [ruby-dev:36750]
+
Wed Jul 8 23:13:54 2009 Tadayoshi Funaba <tadf@dotrb.org>
* complex.c (nucomp_div): omitted zero division check.
diff --git a/error.c b/error.c
index c4f4938cc6..aab3d66483 100644
--- a/error.c
+++ b/error.c
@@ -99,7 +99,7 @@ compile_warn_print(const char *file, int line, const char *fmt, va_list args)
int len;
compile_snprintf(buf, BUFSIZ, file, line, fmt, args);
- len = strlen(buf);
+ len = (int)strlen(buf);
buf[len++] = '\n';
rb_write_error2(buf, len);
}
@@ -142,7 +142,7 @@ warn_print(const char *fmt, va_list args)
int len;
err_snprintf(buf, BUFSIZ, fmt, args);
- len = strlen(buf);
+ len = (int)strlen(buf);
buf[len++] = '\n';
rb_write_error2(buf, len);
}