Skip to content

Commit 9dbc056

Browse files
authored
Fix poly cut (#239)
Fixes increment bug that caused segfault.
1 parent 09c3bd3 commit 9dbc056

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/array_ops.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,8 @@ void pcut_poly_tod2vals_helper(const vector<RangesInt32> & rangemat, int resolut
327327
vals[i+p] += t*Pa;
328328
}
329329
}
330-
i += np;
331330
}
331+
i += np;
332332
}
333333
}
334334
}
@@ -356,8 +356,8 @@ void pcut_poly_vals2tod_helper(const vector<RangesInt32> & rangemat, int resolut
356356
}
357357
}
358358
tod[di*nsamp+s] = t;
359-
i += np;
360359
}
360+
i += np;
361361
}
362362
}
363363
}

0 commit comments

Comments
 (0)