summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-03 01:37:22 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-03 01:37:22 +0000
commit3b320b782f3003b5ab1b026f5c74f3e5a1c2d24a (patch)
treec6ce1d9f72cc3cab47de2f1cb5db892e44bac72f
parent74015e537d111e218019f64688fbc896acb6b3eb (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
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index 1f04ce507c..dfcf9b9f88 100644
--- a/gc.c
+++ b/gc.c
@@ -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);