fixup! JitX64::LocationDescriptorHash: Use static_cast

This commit is contained in:
MerryMage 2016-04-05 12:24:07 +01:00
parent d7348adbba
commit 90a9e758bb

View File

@ -32,7 +32,7 @@ struct LocationDescriptor {
struct LocationDescriptorHash { struct LocationDescriptorHash {
size_t operator()(const LocationDescriptor& x) const { size_t operator()(const LocationDescriptor& x) const {
return std::hash<u64>()((u64)x.arm_pc ^ ((u64)x.TFlag << 32) ^ ((u64)x.EFlag << 33)); return std::hash<u64>()(static_cast<u64>(x.arm_pc) ^ (static_cast<u64>(x.TFlag) << 32) ^ (static_cast<u64>(x.EFlag) << 33));
} }
}; };