]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/asn1/x_int64.c
Add some casts for %j
[thirdparty/openssl.git] / crypto / asn1 / x_int64.c
index 714e2f7075057ec2faa86dfe3474bd09fc3879ee..8f06475a93366c0d250cd50b9c438468e665554d 100644 (file)
@@ -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 */