From e2ae37c24dc82e6734fbbf8ae4d154964d7fec54 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 12 May 2020 08:56:01 +0200 Subject: [PATCH] documentation: calculate the result index differently. --- documentation/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/search.js b/documentation/search.js index 82b9fd42..a4f9a43f 100644 --- a/documentation/search.js +++ b/documentation/search.js @@ -330,7 +330,7 @@ var Search = { /* Populate the results with all values associated with this node */ for(let i = 0; i != resultCount; ++i) { - let index = this.trie.getUint16(offset + (i + 1)*2, true); + let index = this.trie.getUint16(offset + 2 + i*2, true); results.push(this.gatherResult(index, suffixLength, 0xffffff)); /* should be enough haha */ /* 'nuff said. */ -- 2.30.2