summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authortarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-13 16:19:49 +0000
committertarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-13 16:19:49 +0000
commit71286e3770b86a11f554ee1eacd13e30dd47bd08 (patch)
tree9444a32f021df75fcf7542a4872cf43e0e43cd0c /gc.c
parent4fd53e476e493630a140edc085c71f2670d74942 (diff)
* gc.c (wmap_final_func): Bugfix. Should update *value to new pointer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gc.c b/gc.c
index 3d5aade54e..03c755dac8 100644
--- a/gc.c
+++ b/gc.c
@@ -6330,6 +6330,7 @@ wmap_final_func(st_data_t *key, st_data_t *value, st_data_t arg, int existing)
if (j < i) {
ptr = ruby_sized_xrealloc2(ptr, j, sizeof(VALUE), i);
ptr[0] = j;
+ *value = (st_data_t)ptr;
}
return ST_CONTINUE;
}