From 081625d16e00b349477c7216ee01f82fb8df835b Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 9 Jul 2009 22:18:55 +0000 Subject: * error.c (compile_warn_print, warn_print): fixed false warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- error.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'error.c') 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); } -- cgit v1.2.3