From 560f7abb7e12d09b5e1dd2e9c8e3c6a04fc901d3 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 15 Mar 2004 22:33:19 +0000 Subject: Make sure we use unsigned constants, or come compilers may complain. --- crypto/ec/ec2_smpl.c | 2 +- crypto/ec/ecp_smpl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'crypto/ec') 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)) -- cgit v1.2.3