aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/evp/scrypt.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/evp/scrypt.c')
-rw-r--r--crypto/evp/scrypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/scrypt.c b/crypto/evp/scrypt.c
index 26b4e596ba..e609594a91 100644
--- a/crypto/evp/scrypt.c
+++ b/crypto/evp/scrypt.c
@@ -139,7 +139,7 @@ static void scryptROMix(unsigned char *B, uint64_t r, uint64_t N,
*pV = *pB++;
*pV |= *pB++ << 8;
*pV |= *pB++ << 16;
- *pV |= *pB++ << 24;
+ *pV |= (uint32_t)*pB++ << 24;
}
for (i = 1; i < N; i++, pV += 32 * r)