- table = (TTEntry*)((size_t(mem) + CACHE_LINE_SIZE - 1) & ~(CACHE_LINE_SIZE - 1));
- hashMask = size - ClusterSize;
- clear(); // Newly allocated block of memory is not initialized
+ table = (TTEntry*)((uintptr_t(mem) + CACHE_LINE_SIZE - 1) & ~(CACHE_LINE_SIZE - 1));
+ clear(); // Operator new is not guaranteed to initialize memory to zero