1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix syntax error in obj_free with hash size debug counter when USE_DEBUG_COUNTER is enabled

This commit is contained in:
Lourens Naudé 2020-01-12 10:36:15 +00:00 committed by Nobuyoshi Nakada
parent 83b8dfac90
commit 61ff5cd5fd
Notes: git 2020-01-13 08:03:24 +09:00

2
gc.c
View file

@ -2653,7 +2653,7 @@ obj_free(rb_objspace_t *objspace, VALUE obj)
break;
case T_HASH:
#if USE_DEBUG_COUNTER
switch RHASH_SIZE(obj) {
switch (RHASH_SIZE(obj)) {
case 0:
RB_DEBUG_COUNTER_INC(obj_hash_empty);
break;