diff options
author | Rich Salz <rsalz@openssl.org> | 2017-08-14 19:59:54 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2017-08-14 19:59:54 -0400 |
commit | c4d2e483a39176a476c56d35879423fe6e33c0cd (patch) | |
tree | 430bdc5bdf856be48a01a64dba0aa16771f900e6 /crypto | |
parent | e75138abea25659d304feb880cf54d760245e2f3 (diff) |
Add some casts for %j
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/4160)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/asn1/x_int64.c | 4 |
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 */ |