aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fstdata.cc
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2022-02-04 10:01:06 +0100
committerMiodrag Milanovic <mmicko@gmail.com>2022-02-04 10:01:06 +0100
commit6db23de7b13c57eb82489d4bf2f0658b6deb4488 (patch)
tree4e1affec5076888ef58109d4eaaa508d3d2d8005 /kernel/fstdata.cc
parent7ef6da4c7d418b53ea2868ea452a856cfb2d5b21 (diff)
downloadyosys-6db23de7b13c57eb82489d4bf2f0658b6deb4488.tar.gz
yosys-6db23de7b13c57eb82489d4bf2f0658b6deb4488.tar.bz2
yosys-6db23de7b13c57eb82489d4bf2f0658b6deb4488.zip
bug fix and cleanups
Diffstat (limited to 'kernel/fstdata.cc')
-rw-r--r--kernel/fstdata.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fstdata.cc b/kernel/fstdata.cc
index 17498c4ee..0b62564f6 100644
--- a/kernel/fstdata.cc
+++ b/kernel/fstdata.cc
@@ -174,7 +174,7 @@ static void reconstruct_clb_attimes(void *user_data, uint64_t pnt_time, fstHandl
void FstData::reconstruct_callback_attimes(uint64_t pnt_time, fstHandle pnt_facidx, const unsigned char *pnt_value, uint32_t /* plen */)
{
- if (sample_times_ndx > sample_times.size()) return;
+ if (sample_times_ndx >= sample_times.size()) return;
uint64_t time = sample_times[sample_times_ndx];
// if we are past the timestamp