GH608: Ensure 64-bit shift no matter sizeof(long)

Signed-off-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Emilia Käsper <emilia@openssl.org>
This commit is contained in:
Dmitry-Me 2016-02-02 09:55:06 +03:00 committed by Rich Salz
parent 542dfaf308
commit 19f7130beb
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ int EVP_PBE_scrypt(const char *pass, size_t passlen,
*/
if (16 * r <= LOG2_UINT64_MAX) {
if (N >= (1UL << (16 * r)))
if (N >= (((uint64_t)1) << (16 * r)))
return 0;
}