signedness warning corrected
authorRichard Levitte <levitte@openssl.org>
Wed, 5 Jun 2002 11:23:19 +0000 (11:23 +0000)
committerRichard Levitte <levitte@openssl.org>
Wed, 5 Jun 2002 11:23:19 +0000 (11:23 +0000)
crypto/asn1/a_enum.c
crypto/asn1/a_int.c

index 74b1414a91b21ee11c4626914bc3c7f8f7b5088b..4124ec07dfe3b467c3d22430b02e0227bcd63f23 100644 (file)
@@ -207,7 +207,8 @@ ASN1_ENUMERATED *BN_to_ASN1_ENUMERATED(BIGNUM *bn, ASN1_ENUMERATED *ai)
        len=((j == 0)?0:((j/8)+1));
        if (ret->length < len+4)
                {
-               char *new_data=(char *)OPENSSL_realloc(ret->data, len+4);
+               unsigned char *new_data=
+                       (unsigned char *)OPENSSL_realloc(ret->data, len+4);
                if (!new_data)
                        {
                        ASN1err(ASN1_F_BN_TO_ASN1_INTEGER,ERR_R_MALLOC_FAILURE);
index 7b39519e5cb9ec8e5f167537145e48ca605a6d6b..b051a1939232715e3a26889b729d678b52eeaef8 100644 (file)
@@ -453,7 +453,8 @@ ASN1_INTEGER *BN_to_ASN1_INTEGER(BIGNUM *bn, ASN1_INTEGER *ai)
        len=((j == 0)?0:((j/8)+1));
        if (ret->length < len+4)
                {
-               char *new_data=(char *)OPENSSL_realloc(ret->data, len+4);
+               unsigned char *new_data=
+                       (unsigned char *)OPENSSL_realloc(ret->data, len+4);
                if (!new_data)
                        {
                        ASN1err(ASN1_F_BN_TO_ASN1_INTEGER,ERR_R_MALLOC_FAILURE);