From c47a1df4b07230327965ce81c1d813f371be467e Mon Sep 17 00:00:00 2001 From: chhylp123 Date: Sun, 14 Feb 2021 12:47:51 -0500 Subject: [PATCH] fix chain bug --- Purge_Dups.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Purge_Dups.cpp b/Purge_Dups.cpp index 0c76a65..8044a7b 100644 --- a/Purge_Dups.cpp +++ b/Purge_Dups.cpp @@ -1539,7 +1539,7 @@ void quick_LIS(asg_arc_t_offset* x, uint32_t n, kvec_t_i32_warp* tailIndex, kvec i, Get_xOff(x[i].Off), Get_yOff(x[i].Off), pos); } /*******************************for debug************************************/ - prevIndex->a.a[i] = pos > 1? tailIndex->a.a[pos - 1] : -1; + prevIndex->a.a[i] = pos > 0? tailIndex->a.a[pos - 1] : -1; tailIndex->a.a[pos] = i; } }