summaryrefslogtreecommitdiffstats
path: root/error.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-09 22:18:55 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-09 22:18:55 +0000
commite8d660e7cdf395aa92909fdc71fcc81f2299ab47 (patch)
treea0f4668ef2f1d7a0509fea866cea47d7ba639cbc /error.c
parent48031fb34d87ca8c3ce11027f26910acfcc68d11 (diff)
downloadruby-e8d660e7cdf395aa92909fdc71fcc81f2299ab47.tar.gz
ruby-e8d660e7cdf395aa92909fdc71fcc81f2299ab47.tar.xz
ruby-e8d660e7cdf395aa92909fdc71fcc81f2299ab47.zip
* error.c (compile_warn_print, warn_print): fixed false warnings.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r--error.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/error.c b/error.c
index c4f4938cc..aab3d6648 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);
}