cast 1 to long

pull/8136/head
Anthony Hu 2024-11-01 11:34:22 -04:00
parent 2254ec89d3
commit d959d9de7f
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}