Fix MSVC warnings with u64 keys
[junction.git] / junction / details / LeapFrog.h
index e5af7b8211c7d74991a0a6c682d64db121c7f23d..800d7374e2dcc1470c95e90c03ed090d54f2a7b7 100644 (file)
@@ -191,7 +191,7 @@ struct LeapFrog {
         TURF_ASSERT(table);
         TURF_ASSERT(hash != KeyTraits::NullHash);
         ureg sizeMask = table->sizeMask;
-        ureg idx = hash;
+        ureg idx = ureg(hash);
 
         // Check hashed cell first, though it may not even belong to the bucket.
         CellGroup* group = table->getCellGroups() + ((idx & sizeMask) >> 2);