Skip to content

Commit

Permalink
update as mentioned in review for iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Aug 2, 2018
1 parent 88a7d11 commit 9cd5339
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions plugins/python/plang/Invocation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,14 +427,7 @@ void Invocation::end(PointView& view, MetadataNode m)
size_t arrSize(0);
void *data = extractResult(name, dd->type(), arrSize);
char *p = (char *)data;
for (PointId idx = 0; idx < view.size(); ++idx)
{
view.setField(d, dd->type(), idx, (void *)p);
p += size;
}

// Set fields for any extra points we've added
for (PointId idx = view.size(); idx < arrSize; ++idx)
for (PointId idx = 0; idx < arrSize; ++idx)
{
view.setField(d, dd->type(), idx, (void *)p);
p += size;
Expand Down

0 comments on commit 9cd5339

Please sign in to comment.