Fix opt_imax() call
[openssl.git] / crypto / evp / scrypt.c
index 26b4e596ba2bb7c6f5d16ba590a37cf6562a51d2..158816c9d9251d83697b7c1e630eb9cfccebf35a 100644 (file)
@@ -1,4 +1,3 @@
-/* scrypt.c */
 /*
  * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL project
  * 2015.
@@ -139,7 +138,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)