X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=logicdatasnapshot.cpp;h=e29a866e5fea444b735e5219835c1278b746bef5;hb=f0fa92c6c431e15f2012003bd35e6e474d7fca8f;hp=032d9c81e464f2dd3311fd31a076a83073aa34a1;hpb=2858b391af20bd46c9a7da17195ec8d58bcd12c3;p=pulseview.git diff --git a/logicdatasnapshot.cpp b/logicdatasnapshot.cpp index 032d9c8..e29a866 100644 --- a/logicdatasnapshot.cpp +++ b/logicdatasnapshot.cpp @@ -65,7 +65,7 @@ void LogicDataSnapshot::get_subsampled_edges( bool last_sample = get_sample(start) & sig_mask; edges.push_back(pair(start, last_sample)); - for(int64_t i = start + 1; i < end - 1; i++) + for(int64_t i = start + 1; i < end; i++) { const bool sample = get_sample(i) & sig_mask; @@ -89,6 +89,6 @@ void LogicDataSnapshot::get_subsampled_edges( } // Add the final state - edges.push_back(pair(end - 1, - get_sample(end - 1) & sig_mask)); + edges.push_back(pair(end, + get_sample(end) & sig_mask)); }