From c192b692cf7753662171db063a89105e072c82df Mon Sep 17 00:00:00 2001 From: lucasart Date: Thu, 3 Jul 2014 18:23:56 +0800 Subject: [PATCH] size_t cast in TranspositionTable::first_entry() 32-bit truncation would make this function bogus when clusterCount >= 2^33 (ie. Hash >= 256 GB). No function change. --- src/tt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tt.h b/src/tt.h index c4422052..30a93897 100644 --- a/src/tt.h +++ b/src/tt.h @@ -109,7 +109,7 @@ extern TranspositionTable TT; inline TTEntry* TranspositionTable::first_entry(const Key key) const { - return &table[(uint32_t)key & (clusterCount - 1)].entry[0]; + return &table[(size_t)key & (clusterCount - 1)].entry[0]; } #endif // #ifndef TT_H_INCLUDED -- 2.39.2