X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=logicdatasnapshot.cpp;h=e29a866e5fea444b735e5219835c1278b746bef5;hb=652010ea57ca43952d626f33ebf84fb01a663ed4;hp=032d9c81e464f2dd3311fd31a076a83073aa34a1;hpb=04abfae9c8f8e4884e6535d6584df8b5f1e3a1db;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)); }