diff --git a/Mono.Cecil.PE/ByteBuffer.cs b/Mono.Cecil.PE/ByteBuffer.cs index 4911786ee..68668f53e 100644 --- a/Mono.Cecil.PE/ByteBuffer.cs +++ b/Mono.Cecil.PE/ByteBuffer.cs @@ -261,7 +261,7 @@ public void WriteCompressedInt32 (int value) // 0xffffffff for negative value // 0x00000000 for non-negative - int signMask = value >> 31; + int signMask = value >> 31; if ((value & ~b6) == (signMask & ~b6)) { int n = ((value & b6) << 1) | (signMask & 1); @@ -311,6 +311,7 @@ static uint ReverseEndianness (uint value) // extracted from .net BCL static uint RotateRight (uint value, int offset) => (value >> offset) | (value << (32 - offset)); + static uint RotateLeft (uint value, int offset) => (value << offset) | (value >> (32 - offset));