mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 15:26:33 +00:00
[CRT] fix bug in _rotr implementation
This commit is contained in:
parent
d3e83d7d5e
commit
07c7295545
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ unsigned int _rotr( unsigned int value, int shift )
|
||||||
if ( shift < 0 )
|
if ( shift < 0 )
|
||||||
return _rotl(value,-shift);
|
return _rotl(value,-shift);
|
||||||
|
|
||||||
if ( shift > max_bits<<3 )
|
if ( shift > max_bits )
|
||||||
shift = shift % max_bits;
|
shift = shift % max_bits;
|
||||||
return (value >> shift) | (value << (max_bits-shift));
|
return (value >> shift) | (value << (max_bits-shift));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue