Revert the size_t modifications from HEAD that had led to more
[openssl.git] / crypto / bn / bn_print.c
index 521e8a3..bebb466 100644 (file)
@@ -71,7 +71,7 @@ char *BN_bn2hex(const BIGNUM *a)
        char *buf;
        char *p;
 
-       buf=OPENSSL_malloc(a->top*BN_BYTES*2+2);
+       buf=(char *)OPENSSL_malloc(a->top*BN_BYTES*2+2);
        if (buf == NULL)
                {
                BNerr(BN_F_BN_BN2HEX,ERR_R_MALLOC_FAILURE);
@@ -116,7 +116,7 @@ char *BN_bn2dec(const BIGNUM *a)
        i=BN_num_bits(a)*3;
        num=(i/10+i/1000+1)+1;
        bn_data=(BN_ULONG *)OPENSSL_malloc((num/BN_DEC_NUM+1)*sizeof(BN_ULONG));
-       buf=OPENSSL_malloc(num+3);
+       buf=(char *)OPENSSL_malloc(num+3);
        if ((buf == NULL) || (bn_data == NULL))
                {
                BNerr(BN_F_BN_BN2DEC,ERR_R_MALLOC_FAILURE);