diff options
author | Peter Zhu <peter@peterzhu.ca> | 2023-03-15 17:40:50 -0400 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2023-03-16 10:00:02 -0400 |
commit | e0cf80d666d4b5df3229f030a16d10d21323508e (patch) | |
tree | f9b5cfb5a90fdd54eb8bf204e171745a792b0b42 /eval.c | |
parent | 671ddb1eee1334e3b5cc209ec4c981ae2d0ba9dc (diff) | |
download | ruby-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 'eval.c')
0 files changed, 0 insertions, 0 deletions