diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-03 01:37:22 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-03 01:37:22 +0000 |
commit | 3b320b782f3003b5ab1b026f5c74f3e5a1c2d24a (patch) | |
tree | c6ce1d9f72cc3cab47de2f1cb5db892e44bac72f /gc.c | |
parent | 74015e537d111e218019f64688fbc896acb6b3eb (diff) |
gc.c: suppress warning
* gc.c (obj_free): suppress a false shorten-64-to-32 warning,
RUBY_TYPED_FREE_IMMEDIATELY never exceed the limit of int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1358,7 +1358,7 @@ obj_free(rb_objspace_t *objspace, VALUE obj) int free_immediately = 0; if (RTYPEDDATA_P(obj)) { - free_immediately = RANY(obj)->as.typeddata.type->flags & RUBY_TYPED_FREE_IMMEDIATELY; + free_immediately = (int)(RANY(obj)->as.typeddata.type->flags & RUBY_TYPED_FREE_IMMEDIATELY); RDATA(obj)->dfree = RANY(obj)->as.typeddata.type->function.dfree; if (0 && free_immediately == 0) /* to expose non-free-immediate T_DATA */ fprintf(stderr, "not immediate -> %s\n", RANY(obj)->as.typeddata.type->wrap_struct_name); |