summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-05-11 16:45:40 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-05-11 16:47:25 +0900
commit15e977349e31389515bccf7a9684005a0c36e02d (patch)
treebb4a8289699a540af59d03b5329ef8f3f4230a46 /gc.c
parent4fbb34415659d33b479973e1fdbc71314bd810eb (diff)
more on NULL versus functions
Function pointers are not void*. See also 115fec062ccf7c6d72c8d5f64b7a5d84c9fb2dd8 ce4ea956d24eab5089a143bba38126f2b11b55b6 8427fca49bd85205f5a8766292dd893f003c0e48
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index 320de1c9dd..76d112ca53 100644
--- a/gc.c
+++ b/gc.c
@@ -8228,7 +8228,7 @@ update_cc_tbl(rb_objspace_t *objspace, VALUE klass)
{
struct rb_id_table *tbl = RCLASS_CC_TBL(klass);
if (tbl) {
- rb_id_table_foreach_with_replace(tbl, update_cc_tbl_i, NULL, objspace);
+ rb_id_table_foreach_with_replace(tbl, update_cc_tbl_i, 0, objspace);
}
}