Minor change to work with older versions of boost python.

This commit is contained in:
Davis King 2013-06-26 23:01:45 -04:00
parent 9bd149a65e
commit 2d034a58a0
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ double cv__getitem__(cv& m, long r)
cv cv__getitem2__(cv& m, slice r) cv cv__getitem2__(cv& m, slice r)
{ {
slice::range<cv::iterator> bounds; slice::range<cv::iterator> bounds;
bounds = r.get_indices<>(m.begin(), m.end()); bounds = r.get_indicies<>(m.begin(), m.end());
long num = (bounds.stop-bounds.start+1); long num = (bounds.stop-bounds.start+1);
// round num up to the next multiple of bounds.step. // round num up to the next multiple of bounds.step.
if ((num%bounds.step) != 0) if ((num%bounds.step) != 0)