From: zefklop Date: Sat, 28 Oct 2017 08:28:27 +0000 (+0200) Subject: [CRT] fix bug in _rotr implementation X-Git-Tag: v0.4.7~201 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=07c72955457267ee26f6086e75c5595fbce76e06;ds=sidebyside [CRT] fix bug in _rotr implementation --- diff --git a/sdk/lib/crt/stdlib/rot.c b/sdk/lib/crt/stdlib/rot.c index 825a76d3eda..7637a5e9b6d 100644 --- a/sdk/lib/crt/stdlib/rot.c +++ b/sdk/lib/crt/stdlib/rot.c @@ -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)); }