aboutsummaryrefslogtreecommitdiffstats
path: root/ext/objspace/object_tracing.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-27 16:48:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-27 16:48:15 +0000
commit462804fce43b15d0ffda8d37a0eee66d33b78246 (patch)
tree068c37dedc2f20e7f16b946cd10bce523e9cbf3c /ext/objspace/object_tracing.c
parentf72bd6e720ec0a75a3d3e64daef1536297c53967 (diff)
downloadruby-462804fce43b15d0ffda8d37a0eee66d33b78246.tar.gz
suppress warnings
* ext/-test-/postponed_job/postponed_job.c (pjob_register), (pjob_call_direct): none void function. * ext/-test-/tracepoint/tracepoint.c (tracepoint_track_objspace_events): adjust type to get rid of implicit cast. * ext/objspace/object_tracing.c (newobj_i): ditto. * ext/tk/tkutil/tkutil.c (tk_conv_args): adjust type against RHASH_SIZE(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/objspace/object_tracing.c')
-rw-r--r--ext/objspace/object_tracing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/objspace/object_tracing.c b/ext/objspace/object_tracing.c
index 3caaa75065..5950cb7a78 100644
--- a/ext/objspace/object_tracing.c
+++ b/ext/objspace/object_tracing.c
@@ -42,7 +42,7 @@ newobj_i(VALUE tpval, void *data)
VALUE obj = rb_tracearg_object(tparg);
VALUE path = rb_tracearg_path(tparg);
VALUE line = rb_tracearg_lineno(tparg);
- int path_len = RSTRING_LEN(path);
+ long path_len = RSTRING_LEN(path);
struct allocation_info *info = (struct allocation_info *)ruby_xmalloc(sizeof(struct allocation_info));
char *path_cstr = ruby_xmalloc(path_len + 1);
char *path_stored_cstr;