1
1
mirror of https://github.com/BLAKE2/BLAKE2 synced 2024-09-16 08:31:34 +02:00

Update blake2-impl.h

This commit is contained in:
mjvk 2018-05-09 11:47:33 +01:00 committed by GitHub
parent cf068aafd6
commit 3d6155ab16
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,8 +72,8 @@ static BLAKE2_INLINE uint16_t load16( const void *src )
return w;
#else
const uint8_t *p = ( const uint8_t * )src;
return (( uint16_t )( p[0] ) << 0) |
(( uint16_t )( p[1] ) << 8) ;
return ( uint16_t )((( uint32_t )( p[0] ) << 0) |
(( uint32_t )( p[1] ) << 8));
#endif
}