Commit 82866799 authored by Kevin Modzelewski's avatar Kevin Modzelewski

whoops, somehow this didn't get merged

parent e76e3836
...@@ -57,12 +57,12 @@ extern "C" Box* dir1(Box* obj) { ...@@ -57,12 +57,12 @@ extern "C" Box* dir1(Box* obj) {
result = new BoxedList(); result = new BoxedList();
} }
for (auto const& kv : obj->cls->hcls->attr_offsets) { for (auto const& kv : obj->cls->attrs.hcls->attr_offsets) {
listAppend(result, boxString(kv.first)); listAppend(result, boxString(kv.first));
} }
if (obj->cls->hasattrs) { if (obj->cls->instancesHaveAttrs()) {
HCBox* hcb = static_cast<HCBox*>(obj); HCAttrs* attrs = obj->getAttrsPtr();
for (auto const& kv : hcb->hcls->attr_offsets) { for (auto const& kv : attrs->hcls->attr_offsets) {
listAppend(result, boxString(kv.first)); listAppend(result, boxString(kv.first));
} }
} }
......
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