projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[CRT] fix bug in _rotr implementation
[reactos.git]
/
sdk
/
lib
/
crt
/
stdlib
/
rot.c
diff --git
a/sdk/lib/crt/stdlib/rot.c
b/sdk/lib/crt/stdlib/rot.c
index
825a76d
..
7637a5e
100644
(file)
--- 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 < 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));
}
shift = shift % max_bits;
return (value >> shift) | (value << (max_bits-shift));
}