diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-11-15 23:27:16 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-11-15 23:27:16 (GMT) |
commit | c1a57d306c1e1544edb7712bed7c7d5c72816fd4 (patch) | |
tree | 9c9aad085bcefa0730d72d32ed781df266182f5a /Modules | |
parent | e990c6e9525a4c26e65b7757f042612d6f17b1eb (diff) | |
download | cpython-c1a57d306c1e1544edb7712bed7c7d5c72816fd4.zip cpython-c1a57d306c1e1544edb7712bed7c7d5c72816fd4.tar.gz cpython-c1a57d306c1e1544edb7712bed7c7d5c72816fd4.tar.bz2 |
Fix compiler warnings on Windows 64 bit: add an explicit cast from Py_ssize_t
to int, password.len was checked for being smaller than INT_MAX.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_hashopenssl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_hashopenssl.c b/Modules/_hashopenssl.c index 1a11bb5..b4c5b51 100644 --- a/Modules/_hashopenssl.c +++ b/Modules/_hashopenssl.c @@ -670,7 +670,7 @@ pbkdf2_hmac(PyObject *self, PyObject *args, PyObject *kwdict) key = PyBytes_AS_STRING(key_obj); Py_BEGIN_ALLOW_THREADS - retval = PKCS5_PBKDF2_HMAC_fast((char*)password.buf, password.len, + retval = PKCS5_PBKDF2_HMAC_fast((char*)password.buf, (int)password.len, (unsigned char *)salt.buf, salt.len, iterations, digest, dklen, (unsigned char *)key); |