mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 08:17:09 +08:00
[CRT] fix bug in _rotr implementation
This commit is contained in:
@@ -38,7 +38,7 @@ unsigned int _rotr( unsigned int value, int shift )
|
||||
if ( shift < 0 )
|
||||
return _rotl(value,-shift);
|
||||
|
||||
if ( shift > max_bits<<3 )
|
||||
if ( shift > max_bits )
|
||||
shift = shift % max_bits;
|
||||
return (value >> shift) | (value << (max_bits-shift));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user