From 289d42c932b744260359ee2c02d6723ecb8fc714 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 15 Dec 2020 23:43:08 +0900 Subject: [PATCH] Removed unneeded cast and use the real name --- gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gc.c b/gc.c index d5919d19dc..1bc1ce9fd1 100644 --- a/gc.c +++ b/gc.c @@ -2734,7 +2734,7 @@ static inline void make_io_zombie(rb_objspace_t *objspace, VALUE obj) { rb_io_t *fptr = RANY(obj)->as.file.fptr; - make_zombie(objspace, obj, (void (*)(void*))rb_io_fptr_finalize, fptr); + make_zombie(objspace, obj, rb_io_fptr_finalize_internal, fptr); } static void