From: Joel Holdsworth Date: Sat, 13 Oct 2012 21:29:07 +0000 (+0100) Subject: Removed uneeded statements in LogicDataSnapshot test X-Git-Tag: pulseview-0.1.0~247 X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=fe48aaeba282c95336583aa9dfe31c8c259480c6 Removed uneeded statements in LogicDataSnapshot test --- diff --git a/test/logicdatasnapshot.cpp b/test/logicdatasnapshot.cpp index 4f2c8651..3dd72285 100644 --- a/test/logicdatasnapshot.cpp +++ b/test/logicdatasnapshot.cpp @@ -355,7 +355,7 @@ BOOST_AUTO_TEST_CASE(LongPulses) for(int i = 0; i < Cycles; i++) { for(j = 0; j < PulseWidth; j++) *p++ = ~0; - for(j; j < Period; j++) + for(; j < Period; j++) *p++ = 0; } @@ -376,7 +376,7 @@ BOOST_AUTO_TEST_CASE(LongPulses) BOOST_CHECK_EQUAL(s.get_subsample(0, i++), ~0); } - for(j; i < s._mip_map[0].length && + for(; i < s._mip_map[0].length && j < Period/LogicDataSnapshot::MipMapScaleFactor; j++) { BOOST_TEST_MESSAGE( "Testing mip_map[0].data[" << i << "]");