Commit 7c6ee202 authored by Michael Arntzenius's avatar Michael Arntzenius

allow zero-length unpacks

parent 14aa97c7
......@@ -254,8 +254,6 @@ static void _checkUnpackingLength(i64 expected, i64 given) {
}
extern "C" Box** unpackIntoArray(Box* obj, int64_t expected_size) {
assert(expected_size > 0);
if (obj->cls == tuple_cls) {
BoxedTuple* t = static_cast<BoxedTuple*>(obj);
_checkUnpackingLength(expected_size, t->elts.size());
......
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