aboutsummaryrefslogtreecommitdiffstats
path: root/vm_dump.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2023-03-15 17:40:50 -0400
committerPeter Zhu <peter@peterzhu.ca>2023-03-16 10:00:02 -0400
commite0cf80d666d4b5df3229f030a16d10d21323508e (patch)
treef9b5cfb5a90fdd54eb8bf204e171745a792b0b42 /vm_dump.c
parent671ddb1eee1334e3b5cc209ec4c981ae2d0ba9dc (diff)
downloadruby-e0cf80d666d4b5df3229f030a16d10d21323508e.tar.gz
Fix incorrect size of WeakMap buffer
In wmap_final_func, j is the number of elements + 1 (since j also includes the length at the 0th index), so we should resize the buffer to size j and the new length is j - 1.
Diffstat (limited to 'vm_dump.c')
0 files changed, 0 insertions, 0 deletions