Commit 19f7130b authored by Dmitry-Me's avatar Dmitry-Me Committed by Rich Salz
Browse files

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

parent 542dfaf3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
    }