com php-src: fix datatype mismatch warn: win32/winutil.c

From: Date: Wed, 29 Oct 2014 14:30:02 +0000
Subject: com php-src: fix datatype mismatch warn: win32/winutil.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-82859@lists.php.net to get a copy of this message
Commit: 842a98ef3213107c2e3746e54623c271f99114d9 Author: Anatol Belski <ab@php.net> Tue, 28 Oct 2014 19:29:07 +0100 Parents: 9fd0364576c470c1a1febc003eace88fe8d19c8d Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=842a98ef3213107c2e3746e54623c271f99114d9 Log: fix datatype mismatch warn Changed paths: M win32/winutil.c Diff: diff --git a/win32/winutil.c b/win32/winutil.c index 5203fb4..eab3df9 100644 --- a/win32/winutil.c +++ b/win32/winutil.c @@ -115,7 +115,8 @@ PHPAPI int php_win32_get_random_bytes(unsigned char *buf, size_t size) { /* {{{ return FAILURE; } - ret = CryptGenRandom(hCryptProv, size, buf); + /* XXX should go in the loop if size exceeds UINT_MAX */ + ret = CryptGenRandom(hCryptProv, (DWORD)size, buf); if (ret) { return SUCCESS;

« previous php.cvs (#82859) next »