diff options
author | Richard Levitte <levitte@openssl.org> | 2004-03-15 22:33:19 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2004-03-15 22:33:19 +0000 |
commit | 560f7abb7e12d09b5e1dd2e9c8e3c6a04fc901d3 (patch) | |
tree | b3de1ecbfcb31f85732c0c7451475ec47555e8c5 /crypto | |
parent | b6358c89a10128692875fb92921b663c4d079a1e (diff) | |
download | openssl-new-560f7abb7e12d09b5e1dd2e9c8e3c6a04fc901d3.tar.gz |
Make sure we use unsigned constants, or come compilers may complain.
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/ec/ec2_smpl.c | 2 | ||||
-rw-r--r-- | crypto/ec/ecp_smpl.c | 2 |
2 files changed, 2 insertions, 2 deletions
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)) |