downcast len to int. The code has already checked that len < INT_MAX

This commit is contained in:
Christian Heimes 2013-11-22 00:34:18 +01:00
parent 18fc7be80d
commit 1dbf61fa46
1 changed files with 1 additions and 1 deletions

View File

@ -2520,7 +2520,7 @@ _add_ca_certs(PySSLContext *self, void *data, Py_ssize_t len,
return -1;
}
biobuf = BIO_new_mem_buf(data, len);
biobuf = BIO_new_mem_buf(data, (int)len);
if (biobuf == NULL) {
_setSSLError("Can't allocate buffer", 0, __FILE__, __LINE__);
return -1;