summaryrefslogtreecommitdiff
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
commita2868ff65166b27acbbda4af1b9df84ed3171541 (patch)
tree08a0b09a8416ab4b1da83d70cd2fb85a72edb188 /ruby.c
parent454abc5185a4a6425f1140d5c0e2157f8d3f75e1 (diff)
downloadruby-a2868ff65166b27acbbda4af1b9df84ed3171541.tar.gz
* 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: svn+ssh://ci.ruby-lang.org/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 a9dde28241..490b0ad114 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) {