Fixed one-off error
Needs another room to append an empty hash.
This commit is contained in:
parent
9699a5c5bc
commit
f41cd4ba43
@ -243,7 +243,7 @@ add_empty_keyword(int *argc, const VALUE **argv, int *kw_splat)
|
||||
int n = *argc;
|
||||
VALUE v;
|
||||
VALUE *ptr;
|
||||
ptr = rb_alloc_tmp_buffer2(&v, n, sizeof(VALUE));
|
||||
ptr = rb_alloc_tmp_buffer2(&v, n+1, sizeof(VALUE));
|
||||
memcpy(ptr, *argv, sizeof(VALUE)*n);
|
||||
ptr[n] = rb_hash_new();
|
||||
*argc = ++n;
|
||||
|
Loading…
x
Reference in New Issue
Block a user