summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);