From b54bf554a80c8640fb8c8064eeea48576974b0c2 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Mon, 9 Aug 2021 07:02:00 -0400 Subject: [PATCH] Fix bad test in WASM version of HNTrieContainer The erroneous test does not seem to interfere with the proper functioning of the trie, due to the fact that nodes are never split without a OR node or boundary node being present. The issue was found when undertaking a rewrite of the algorithm to avoid having to create boundary nodes. --- src/js/wasm/hntrie.wasm | Bin 1025 -> 1025 bytes src/js/wasm/hntrie.wat | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/wasm/hntrie.wasm b/src/js/wasm/hntrie.wasm index 36dccfc96845c4cc30fca796c67ca91c951daae3..3fdec201bd928fc3d334df2856099a92432ae519 100644 GIT binary patch delta 21 ccmZqVXyn*n%*evw%Hl9Nfl+F6Amaum06E$PQ2+n{ delta 21 ccmZqVXyn*n%*evv%Hl9Nfl+F6Amaum06B66NdN!< diff --git a/src/js/wasm/hntrie.wat b/src/js/wasm/hntrie.wat index 50a3d5832..195e8b226 100644 --- a/src/js/wasm/hntrie.wat +++ b/src/js/wasm/hntrie.wat @@ -197,7 +197,7 @@ br_if $noSegment ;; if ( this.buf32[icell+2] === 0 ) { get_local $icell - i32.load + i32.load offset=8 i32.eqz if ;; if ( ineedle === 0 || this.buf[ineedle-1] === 0x2E ) {