projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed off-by-one in DecoderStack::decode_proc
[pulseview.git]
/
pv
/
data
/
decoderstack.cpp
diff --git
a/pv/data/decoderstack.cpp
b/pv/data/decoderstack.cpp
index b8eff67ffd02d0dc5ab018806b056b0c9849cf67..cb335be080adbd3b21611f0d3abeb1afe4a1dd73 100644
(file)
--- a/
pv/data/decoderstack.cpp
+++ b/
pv/data/decoderstack.cpp
@@
-172,7
+172,7
@@
void DecoderStack::decode_proc(shared_ptr<data::Logic> data)
const shared_ptr<pv::data::LogicSnapshot> &snapshot =
snapshots.front();
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();
const unsigned int chunk_sample_count =
DecodeChunkLength / snapshot->unit_size();