diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-11-15 22:26:25 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-11-15 22:26:25 (GMT) |
commit | 0c083461a576bf27fdb18d3cf744d3ae0b920dbd (patch) | |
tree | 0c6235bbe9dde2ae795b06a308cfbf7d3d1e96a3 /Python/random.c | |
parent | f558778f078af192f9e574a7efdfcbde238c1ce2 (diff) | |
download | cpython-0c083461a576bf27fdb18d3cf744d3ae0b920dbd.zip cpython-0c083461a576bf27fdb18d3cf744d3ae0b920dbd.tar.gz cpython-0c083461a576bf27fdb18d3cf744d3ae0b920dbd.tar.bz2 |
Fix compiler warning in win32_urandom(): explicit cast to DWORD in
CryptGenRandom()
Diffstat (limited to 'Python/random.c')
-rw-r--r-- | Python/random.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/random.c b/Python/random.c index 9c9370c..d9c7e77 100644 --- a/Python/random.c +++ b/Python/random.c @@ -50,7 +50,7 @@ win32_urandom(unsigned char *buffer, Py_ssize_t size, int raise) 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) |