Set explicit conversion

This commit is contained in:
Juliusz Sosinowicz
2021-08-03 17:31:41 +02:00
parent 3b366d24f2
commit 67ee3ddb0f

View File

@ -54963,7 +54963,7 @@ int wolfSSL_CONF_cmd(WOLFSSL_CONF_CTX* cctx, const char* cmd, const char* value)
port = XSTRSTR(str, ":");
if (port != NULL)
bio->port = XATOI(port + 1);
bio->port = (word16)XATOI(port + 1);
else
port = str + XSTRLEN(str); /* point to null terminator */
@ -54988,7 +54988,7 @@ int wolfSSL_CONF_cmd(WOLFSSL_CONF_CTX* cctx, const char* cmd, const char* value)
WOLFSSL_ENTER("wolfSSL_BIO_new_accept");
bio = wolfSSL_BIO_new(wolfSSL_BIO_s_socket());
if (bio) {
bio->port = XATOI(port);
bio->port = (word16)XATOI(port);
bio->type = WOLFSSL_BIO_SOCKET;
}
return bio;