From: Richard Levitte Date: Wed, 5 Jun 2002 11:23:19 +0000 (+0000) Subject: signedness warning corrected X-Git-Tag: OpenSSL_0_9_6e~62 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ea2a6251b9e3106bd7d26dd67211c928da16789d;p=oweals%2Fopenssl.git signedness warning corrected --- diff --git a/crypto/asn1/a_enum.c b/crypto/asn1/a_enum.c index 74b1414a91..4124ec07df 100644 --- a/crypto/asn1/a_enum.c +++ b/crypto/asn1/a_enum.c @@ -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); diff --git a/crypto/asn1/a_int.c b/crypto/asn1/a_int.c index 7b39519e5c..b051a19392 100644 --- a/crypto/asn1/a_int.c +++ b/crypto/asn1/a_int.c @@ -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);