As in 0.9.8-dev, make sure we use unsigned constants, or some
authorRichard Levitte <levitte@openssl.org>
Mon, 15 Mar 2004 23:06:59 +0000 (23:06 +0000)
committerRichard Levitte <levitte@openssl.org>
Mon, 15 Mar 2004 23:06:59 +0000 (23:06 +0000)
compilers may complain.

crypto/ec/ecp_smpl.c

index 4666a052bfabf0859d465221c0fd2a679aba897a..e9a51fb87a1ce86eebb4d516553361e8586a1999 100644 (file)
@@ -896,7 +896,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))