mirror of
https://github.com/FEX-Emu/FEX.git
synced 2024-11-23 14:40:14 +00:00
Fix left shift undefined behaviour
Here BitOffset can have values higher than 32.
This commit is contained in:
parent
efe7c54374
commit
93e4288c57
@ -1018,7 +1018,7 @@ private:
|
||||
}
|
||||
|
||||
static bool IsNZCV(unsigned BitOffset) {
|
||||
return ContainsNZCV(1U << BitOffset);
|
||||
return ContainsNZCV(UINT64_C(1) << BitOffset);
|
||||
}
|
||||
|
||||
OrderedNode* CachedNZCV {};
|
||||
|
Loading…
Reference in New Issue
Block a user