diff --git a/crypto/asn1/a_object.c b/crypto/asn1/a_object.c index a11d25e1fb..0fbc368f0d 100644 --- a/crypto/asn1/a_object.c +++ b/crypto/asn1/a_object.c @@ -186,7 +186,7 @@ int a2d_ASN1_OBJECT(unsigned char *out, int olen, const char *buf, int num) goto err; } while(blsize--) - tmp[i++] = BN_div_word(bl, 0x80L); + tmp[i++] = (unsigned char)BN_div_word(bl, 0x80L); } else {