Commit 8483b952 authored by Andrey Kamaev's avatar Andrey Kamaev

Fixed #1004

parent cc1c6133
...@@ -717,7 +717,7 @@ int Core_SeqBaseTest::test_get_seq_reading( int _struct_idx, int iters ) ...@@ -717,7 +717,7 @@ int Core_SeqBaseTest::test_get_seq_reading( int _struct_idx, int iters )
CV_TS_SEQ_CHECK_CONDITION( memcmp(elem, cvTsSimpleSeqElem(sseq, pos), CV_TS_SEQ_CHECK_CONDITION( memcmp(elem, cvTsSimpleSeqElem(sseq, pos),
sseq->elem_size) == 0, "reading is incorrect" ); sseq->elem_size) == 0, "reading is incorrect" );
pos += direction; pos += direction;
if( pos < 0 ) pos += total; if( -pos > 0 ) pos += total;
if( pos >= total ) pos -= total; if( pos >= total ) pos -= total;
CV_TS_SEQ_CHECK_CONDITION( pos == cvGetSeqReaderPos( &reader ), CV_TS_SEQ_CHECK_CONDITION( pos == cvGetSeqReaderPos( &reader ),
......
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