From d959d9de7f53fdf7bf43aa599dc31dc9c1c10570 Mon Sep 17 00:00:00 2001 From: Anthony Hu Date: Fri, 1 Nov 2024 11:34:22 -0400 Subject: [PATCH] cast 1 to long --- src/x509.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x509.c b/src/x509.c index c19330f4a..2b6c7e0d4 100644 --- a/src/x509.c +++ b/src/x509.c @@ -7070,7 +7070,7 @@ int wolfSSL_X509_REQ_print(WOLFSSL_BIO* bio, WOLFSSL_X509* x509) /* print version of cert. Note that we increment by 1 because for REQs, * the value stored in x509->version is the actual value of the field; not * the version. */ - if (X509PrintVersion(bio, wolfSSL_X509_REQ_get_version(x509) + 1, 8) + if (X509PrintVersion(bio, wolfSSL_X509_REQ_get_version(x509) + (long)1, 8) != WOLFSSL_SUCCESS) { return WOLFSSL_FAILURE; }