summaryrefslogtreecommitdiffstats
path: root/ruby.c
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-10-29 21:35:28 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-10-29 21:35:28 +0000
commit225c97a638b947e5d117c497c8352a1ceb77b224 (patch)
tree08a0b09a8416ab4b1da83d70cd2fb85a72edb188 /ruby.c
parent7a0f22761e9b92288db432297694a0e6c092276d (diff)
downloadruby-225c97a638b947e5d117c497c8352a1ceb77b224.tar.gz
ruby-225c97a638b947e5d117c497c8352a1ceb77b224.tar.xz
ruby-225c97a638b947e5d117c497c8352a1ceb77b224.zip
* eval.c, file.c, gc.c, io.c, object.c, ruby.c, ruby.h, struct.c,
ext/socket/socket.c: differentiate long and int; use proper printf type specifiers and do casts where appropriate. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index a9dde2824..490b0ad11 100644
--- a/ruby.c
+++ b/ruby.c
@@ -930,7 +930,7 @@ set_arg0(val, id)
}
rb_progname = rb_tainted_str_new(s, i);
#elif defined(HAVE_SETPROCTITLE)
- setproctitle("%.*s", i, s);
+ setproctitle("%.*s", (int)i, s);
rb_progname = rb_tainted_str_new(s, i);
#else
if (len == 0) {