From 710f23aa35a1f67bd857ac0160638bfbbd28fb32 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Wed, 14 Jun 2017 12:54:38 +0200 Subject: [PATCH] COMP: hash-table size overflow with 64-bit labels (fixes #498) - Requires (1L << N) instead of (1 << N), otherwise it overflows and the result is zero. --- applications/test/pTraits/Test-pTraits.C | 12 ++++++------ .../containers/HashTables/HashTable/HashTableCore.C | 5 ++--- .../HashTables/StaticHashTable/StaticHashTableCore.C | 4 ++-- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/applications/test/pTraits/Test-pTraits.C b/applications/test/pTraits/Test-pTraits.C index d300ddc87a..68d6a01527 100644 --- a/applications/test/pTraits/Test-pTraits.C +++ b/applications/test/pTraits/Test-pTraits.C @@ -92,14 +92,14 @@ int main() std::cout<< "max = " << pTraits