diff options
author | Kinichiro Inoguchi <inoguchi@cvs.openbsd.org> | 2020-01-26 11:49:22 +0000 |
---|---|---|
committer | Kinichiro Inoguchi <inoguchi@cvs.openbsd.org> | 2020-01-26 11:49:22 +0000 |
commit | 4851cc933a59a041d38a6b8eb9679266b3736d71 (patch) | |
tree | 2cb5f875a5f1afc266b66933d6d966fec8eb876c /lib/libcrypto | |
parent | 3692044bd12cca06374ea664ae8ce6e4ad41b688 (diff) |
Avoid 32 bit right shift with unsigned int in crypto/cast/cast_lcl.h
ok tb@
Diffstat (limited to 'lib/libcrypto')
-rw-r--r-- | lib/libcrypto/cast/cast_lcl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/cast/cast_lcl.h b/lib/libcrypto/cast/cast_lcl.h index ad4e2fede9f..100ff1f2d2c 100644 --- a/lib/libcrypto/cast/cast_lcl.h +++ b/lib/libcrypto/cast/cast_lcl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cast_lcl.h,v 1.11 2015/11/05 21:46:51 miod Exp $ */ +/* $OpenBSD: cast_lcl.h,v 1.12 2020/01/26 11:49:21 inoguchi Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -145,7 +145,7 @@ *((c)++)=(unsigned char)(((l) )&0xff)) /* only invoked with 0 <= n <= 31 */ -#define ROTL(a,n) ((((a)<<(n))&0xffffffffL)|((a)>>(32-(n)))) +#define ROTL(a,n) ((((a)<<(n))&0xffffffffL)|((a)>>((32-(n))&31))) #define C_M 0x3fc #define C_0 22L |