Hmpf, somehow the change on my github profile was messed up. Sorry about that, the next commit should be under my real name.

Jérôme


Le 28/10/2017 à 10:28, zefklop a écrit :
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=07c72955457267ee26f6086e75c5595fbce76e06

commit 07c72955457267ee26f6086e75c5595fbce76e06
Author: zefklop <zefk...@users.noreply.github.com>
AuthorDate: Sat Oct 28 10:28:27 2017 +0200

     [CRT] fix bug in _rotr implementation
---
  sdk/lib/crt/stdlib/rot.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sdk/lib/crt/stdlib/rot.c b/sdk/lib/crt/stdlib/rot.c
index 825a76d3ed..7637a5e9b6 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));
  }



_______________________________________________
Ros-dev mailing list
Ros-dev@reactos.org
http://www.reactos.org/mailman/listinfo/ros-dev

Reply via email to