From 8437b0c50ee4a74ad4ce0ad039feb77893211367 Mon Sep 17 00:00:00 2001 From: "tomofumi.sakai" Date: Wed, 6 Sep 2023 17:51:17 +0900 Subject: [PATCH] fix overflow TableCount https://github.com/Illumina/DRAGMAP/pull/55 --- src/include/reference/HashtableConfig.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/include/reference/HashtableConfig.hpp b/src/include/reference/HashtableConfig.hpp index 3508fa5..80280f7 100644 --- a/src/include/reference/HashtableConfig.hpp +++ b/src/include/reference/HashtableConfig.hpp @@ -220,8 +220,8 @@ class HashtableConfig { uint64_t getHashtableBytes() const { return header_.hashtableBytes; } // #bytes in references hash table uint64_t getHashtableRecordCount() const { return getHashtableBytes() / 8; } uint64_t getHashtableBucketCount() const { return getHashtableBytes() / 64; } - uint32_t getExtendTableRecordCount() const { return header_.extTabRecs; } - uint32_t getExtendTableBytes() const { return getExtendTableRecordCount() * 8; } + uint64_t getExtendTableRecordCount() const { return header_.extTabRecs; } + uint64_t getExtendTableBytes() const { return getExtendTableRecordCount() * 8; } uint32_t getMinimunFrequencyToExtend() const { return header_.minFreqToExtend; } uint32_t getMaxSeedFrequency() const { return header_.maxSeedFreq; } /// total number of bases in the reference sequence file - including padding