]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
fdr_confirm_compile: fix bug in table sizing
authorJustin Viiret <justin.viiret@intel.com>
Wed, 14 Jun 2017 06:04:26 +0000 (16:04 +1000)
committerMatthew Barr <matthew.barr@intel.com>
Thu, 15 Jun 2017 05:41:30 +0000 (15:41 +1000)
src/fdr/fdr_confirm_compile.cpp

index 319141c4da3101feb71b9b1e6956f6af6c6fa26f..b14ffb4291f746d63c48335ea790dec6df3a7a6a 100644 (file)
@@ -163,7 +163,7 @@ bytecode_ptr<FDRConfirm> getFDRConfirm(const vector<hwlmLiteral> &lits,
     if (make_small) {
         nBits = min(10U, lg2(lits.size()) + 1);
     } else {
-        nBits = lg2(lits.size() + 4);
+        nBits = lg2(lits.size()) + 4;
     }
 
     CONF_TYPE mult = (CONF_TYPE)0x0b4e0ef37bc32127ULL;