summaryrefslogtreecommitdiffstats
path: root/crypto/asn1/x_int64.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/asn1/x_int64.c')
-rw-r--r--crypto/asn1/x_int64.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/asn1/x_int64.c b/crypto/asn1/x_int64.c
index 714e2f7075..8f06475a93 100644
--- a/crypto/asn1/x_int64.c
+++ b/crypto/asn1/x_int64.c
@@ -102,8 +102,8 @@ static int uint64_print(BIO *out, ASN1_VALUE **pval, const ASN1_ITEM *it,
int indent, const ASN1_PCTX *pctx)
{
if ((it->size & INTxx_FLAG_SIGNED) == INTxx_FLAG_SIGNED)
- return BIO_printf(out, "%jd\n", **(int64_t **)pval);
- return BIO_printf(out, "%ju\n", **(uint64_t **)pval);
+ return BIO_printf(out, "%jd\n", (intmax_t)**(int64_t **)pval);
+ return BIO_printf(out, "%ju\n", (uintmax_t)**(uint64_t **)pval);
}
/* 32-bit variants */