Explicit conversions and minor changes to prevent MSVC compiler warnings
This commit is contained in:
parent
b887f1119e
commit
b9cfaa0c7f
21 changed files with 111 additions and 79 deletions
|
@ -59,7 +59,7 @@ int platform_entropy_poll( void *data, unsigned char *output, size_t len,
|
|||
return POLARSSL_ERR_ENTROPY_SOURCE_FAILED;
|
||||
}
|
||||
|
||||
if( CryptGenRandom( provider, len, output ) == FALSE )
|
||||
if( CryptGenRandom( provider, (DWORD) len, output ) == FALSE )
|
||||
return POLARSSL_ERR_ENTROPY_SOURCE_FAILED;
|
||||
|
||||
CryptReleaseContext( provider, 0 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue