diff --git a/src/tt.h b/src/tt.h index f2928fb9..d7f57cc0 100644 --- a/src/tt.h +++ b/src/tt.h @@ -60,7 +60,7 @@ public: ~SimpleHash() { delete [] entries; } - Entry* find(Key key) const { return entries + unsigned(key & (HashSize - 1)); } + Entry* find(Key key) const { return entries + ((uint32_t)key & (HashSize - 1)); } protected: Entry* entries;