ruby-changes:59689
From: Lourens <ko1@a...>
Date: Mon, 13 Jan 2020 08:03:27 +0900 (JST)
Subject: [ruby-changes:59689] 61ff5cd5fd (master): Fix syntax error in obj_free with hash size debug counter when USE_DEBUG_COUNTER is enabled
https://git.ruby-lang.org/ruby.git/commit/?id=61ff5cd5fd From 61ff5cd5fd43ef2a88752b569050d7e24077e827 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lourens=20Naud=C3=A9?= <lourens@b...> Date: Sun, 12 Jan 2020 10:36:15 +0000 Subject: Fix syntax error in obj_free with hash size debug counter when USE_DEBUG_COUNTER is enabled diff --git a/gc.c b/gc.c index a126de9..59313d3 100644 --- a/gc.c +++ b/gc.c @@ -2653,7 +2653,7 @@ obj_free(rb_objspace_t *objspace, VALUE obj) https://github.com/ruby/ruby/blob/trunk/gc.c#L2653 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; -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/