[Python-checkins] cpython: Fix compiler warning in win32_urandom(): explicit cast to DWORD in
victor.stinner
python-checkins at python.org
Sat Nov 16 00:34:14 CET 2013
http://hg.python.org/cpython/rev/baab11a466ab
changeset: 87130:baab11a466ab
user: Victor Stinner <victor.stinner at gmail.com>
date: Fri Nov 15 23:26:25 2013 +0100
summary:
Fix compiler warning in win32_urandom(): explicit cast to DWORD in
CryptGenRandom()
files:
Python/random.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Python/random.c b/Python/random.c
--- a/Python/random.c
+++ b/Python/random.c
@@ -50,7 +50,7 @@
while (size > 0)
{
chunk = size > INT_MAX ? INT_MAX : size;
- if (!CryptGenRandom(hCryptProv, chunk, buffer))
+ if (!CryptGenRandom(hCryptProv, (DWORD)chunk, buffer))
{
/* CryptGenRandom() failed */
if (raise)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list