aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/JavaIntHash.h
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/JavaIntHash.h')
-rw-r--r--Minecraft.World/JavaIntHash.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Minecraft.World/JavaIntHash.h b/Minecraft.World/JavaIntHash.h
index fe608469..8293cb46 100644
--- a/Minecraft.World/JavaIntHash.h
+++ b/Minecraft.World/JavaIntHash.h
@@ -13,9 +13,9 @@ struct IntKeyHash
{
int h = k;
h += ~(h << 9);
- h ^= (((unsigned int)h) >> 14);
+ h ^= (static_cast<unsigned int>(h) >> 14);
h += (h << 4);
- h ^= (((unsigned int)h) >> 10);
+ h ^= (static_cast<unsigned int>(h) >> 10);
return h;
}
};