From: Richard Levitte Date: Mon, 15 Mar 2004 22:33:19 +0000 (+0000) Subject: Make sure we use unsigned constants, or come compilers may complain. X-Git-Tag: LEVITTE_before_const~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=560f7abb7e12d09b5e1dd2e9c8e3c6a04fc901d3;hp=b6358c89a10128692875fb92921b663c4d079a1e;p=oweals%2Fopenssl.git Make sure we use unsigned constants, or come compilers may complain. --- diff --git a/crypto/ec/ec2_smpl.c b/crypto/ec/ec2_smpl.c index 1132c8e5af..d34e97d676 100644 --- a/crypto/ec/ec2_smpl.c +++ b/crypto/ec/ec2_smpl.c @@ -575,7 +575,7 @@ int ec_GF2m_simple_oct2point(const EC_GROUP *group, EC_POINT *point, } form = buf[0]; y_bit = form & 1; - form = form & ~1; + form = form & ~1U; if ((form != 0) && (form != POINT_CONVERSION_COMPRESSED) && (form != POINT_CONVERSION_UNCOMPRESSED) && (form != POINT_CONVERSION_HYBRID)) diff --git a/crypto/ec/ecp_smpl.c b/crypto/ec/ecp_smpl.c index de90f90aa1..9937719520 100644 --- a/crypto/ec/ecp_smpl.c +++ b/crypto/ec/ecp_smpl.c @@ -902,7 +902,7 @@ int ec_GFp_simple_oct2point(const EC_GROUP *group, EC_POINT *point, } form = buf[0]; y_bit = form & 1; - form = form & ~1; + form = form & ~1U; if ((form != 0) && (form != POINT_CONVERSION_COMPRESSED) && (form != POINT_CONVERSION_UNCOMPRESSED) && (form != POINT_CONVERSION_HYBRID))