Skip to content

Commit 4c9646c

Browse files
authored
Merge pull request #3561 from georgthegreat:compat-fixes
More fixes for iterators-are-pointers case
2 parents c82dea1 + 4a7a1f1 commit 4c9646c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/ximgproc/src/structured_edge_detection.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,9 @@ static cv::Mat rgb2luv(const cv::Mat &src)
148148

149149
lTable[i] = l*maxi;
150150
}
151-
for (int i = 0; i < 40; ++i)
152-
lTable.push_back(*--lTable.end());
151+
for (int i = 0; i < 40; ++i) {
152+
lTable.push_back(*lTable.rbegin());
153+
}
153154

154155
const int nchannels = 3;
155156

0 commit comments

Comments
 (0)