From 30331eb800e95c6b860dfcb10546993e209762ce Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Tue, 7 Nov 2023 07:15:17 -0500 Subject: [PATCH] =?UTF-8?q?Fix=20write=20off=20end=20for=20reverse=20?= =?UTF-8?q?=E2=8A=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/singeli/src/search.singeli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/singeli/src/search.singeli b/src/singeli/src/search.singeli index 4b8ec4c3..fa12f6c1 100644 --- a/src/singeli/src/search.singeli +++ b/src/singeli/src/search.singeli @@ -471,6 +471,7 @@ fn hashtab{T, name}(rp:*rty{name}, ip:*T, m:usz, fp:*T, n:usz, links:ity{name}) ti := load{inds, j} if (ti>0) { store{inds, j, ti - load{link,ti}} + store{rp, m-ti, i} } else { do { jp:=j; ++j @@ -480,7 +481,6 @@ fn hashtab{T, name}(rp:*rty{name}, ip:*T, m:usz, fp:*T, n:usz, links:ity{name}) store{inds, jp, load{inds,j}} } while (h!=maxh) } - store{rp, m-ti, i} } } }