]> sigrok.org Git - pulseview.git/commitdiff
Fixed off-by-one in DecoderStack::decode_proc
authorJoel Holdsworth <redacted>
Sat, 25 Jan 2014 13:27:41 +0000 (13:27 +0000)
committerBert Vermeulen <redacted>
Sat, 25 Jan 2014 14:34:00 +0000 (15:34 +0100)
pv/data/decoderstack.cpp

index b8eff67ffd02d0dc5ab018806b056b0c9849cf67..cb335be080adbd3b21611f0d3abeb1afe4a1dd73 100644 (file)
@@ -172,7 +172,7 @@ void DecoderStack::decode_proc(shared_ptr<data::Logic> data)
 
        const shared_ptr<pv::data::LogicSnapshot> &snapshot =
                snapshots.front();
-       const int64_t sample_count = snapshot->get_sample_count() - 1;
+       const int64_t sample_count = snapshot->get_sample_count();
        const unsigned int chunk_sample_count =
                DecodeChunkLength / snapshot->unit_size();