Squash warning

This commit is contained in:
Sergey Lyubka 2022-04-13 10:52:06 +01:00
parent ebd2e89faa
commit 31698678fb
2 changed files with 2 additions and 2 deletions

View File

@ -4577,7 +4577,7 @@ void mg_tls_free(struct mg_connection *c) {
size_t mg_tls_pending(struct mg_connection *c) {
struct mg_tls *tls = (struct mg_tls *) c->tls;
return tls == NULL ? 0 : SSL_pending(tls->ssl);
return tls == NULL ? 0 : (size_t) SSL_pending(tls->ssl);
}
long mg_tls_recv(struct mg_connection *c, void *buf, size_t len) {

View File

@ -143,7 +143,7 @@ void mg_tls_free(struct mg_connection *c) {
size_t mg_tls_pending(struct mg_connection *c) {
struct mg_tls *tls = (struct mg_tls *) c->tls;
return tls == NULL ? 0 : SSL_pending(tls->ssl);
return tls == NULL ? 0 : (size_t) SSL_pending(tls->ssl);
}
long mg_tls_recv(struct mg_connection *c, void *buf, size_t len) {