Make sure we use unsigned constants, or come compilers may complain.
authorRichard Levitte <levitte@openssl.org>
Mon, 15 Mar 2004 22:33:19 +0000 (22:33 +0000)
committerRichard Levitte <levitte@openssl.org>
Mon, 15 Mar 2004 22:33:19 +0000 (22:33 +0000)
crypto/ec/ec2_smpl.c
crypto/ec/ecp_smpl.c

index 1132c8e..d34e97d 100644 (file)
@@ -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))
index de90f90..9937719 100644 (file)
@@ -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))