Commit d1da6f57 authored by Kevin Modzelewski's avatar Kevin Modzelewski

doh, memmove takes size in bytes

parent 5aed5b77
......@@ -135,7 +135,7 @@ int BoxedTuple::Resize(BoxedTuple** pv, size_t newsize) noexcept {
BoxedTuple* resized = new (newsize)
BoxedTuple(newsize); // we want an uninitialized tuple, but this will memset it with 0.
memmove(resized->elts, t->elts, t->size());
memmove(resized->elts, t->elts, sizeof(Box*) * t->size());
*pv = resized;
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment