X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftt.cpp;h=010bdc954e60b0b0a438fdf2bdc417b3a65c0cef;hp=a8aa1b6574604d48fb91a513a066e6dedbaec0ae;hb=337ec0f3d0b402782c3704cc251c209393047dd9;hpb=b056e5d40ab4e90530df53bb110bd74a41a8df07 diff --git a/src/tt.cpp b/src/tt.cpp index a8aa1b65..010bdc95 100644 --- a/src/tt.cpp +++ b/src/tt.cpp @@ -53,11 +53,9 @@ TranspositionTable::~TranspositionTable() { /// TranspositionTable::set_size sets the size of the transposition table, /// measured in megabytes. -void TranspositionTable::set_size(unsigned mbSize) { +void TranspositionTable::set_size(size_t mbSize) { - assert(mbSize >= 4 && mbSize <= 4096); - - unsigned newSize = 1024; + size_t newSize = 1024; // We store a cluster of ClusterSize number of TTEntry for each position // and newSize is the maximum number of storable positions.