diff options
Diffstat (limited to 'src/vm/jithelpers.cpp')
-rw-r--r-- | src/vm/jithelpers.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vm/jithelpers.cpp b/src/vm/jithelpers.cpp index 48b8b94808..48f5df9ff6 100644 --- a/src/vm/jithelpers.cpp +++ b/src/vm/jithelpers.cpp @@ -464,7 +464,7 @@ HCIMPLEND HCIMPL2_VV(INT64, JIT_LRsh, INT64 num, int shift) { FCALL_CONTRACT; - return num >> shift; + return num >> (shift & 0x3F); } HCIMPLEND @@ -472,7 +472,7 @@ HCIMPLEND HCIMPL2_VV(UINT64, JIT_LRsz, UINT64 num, int shift) { FCALL_CONTRACT; - return num >> shift; + return num >> (shift & 0x3F); } HCIMPLEND #endif // !BIT64 && !_TARGET_X86_ |