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 1132c8e5afa828333202066c3d0309a583504b0e..d34e97d676d859f64675c25c4c31080d2b13b6ca 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 = 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))
        if ((form != 0) && (form != POINT_CONVERSION_COMPRESSED)
                && (form != POINT_CONVERSION_UNCOMPRESSED)
                && (form != POINT_CONVERSION_HYBRID))
index de90f90aa10defb62c9f69cc5a889d3421fa2048..9937719520e74cceaa429562d0ce3de157c1a869 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 = 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))
        if ((form != 0) && (form != POINT_CONVERSION_COMPRESSED)
                && (form != POINT_CONVERSION_UNCOMPRESSED)
                && (form != POINT_CONVERSION_HYBRID))