diff options
author | mjvk <29380294+mjvk@users.noreply.github.com> | 2018-05-09 13:49:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-09 13:49:17 +0300 |
commit | 467c5446ac1cb7105f5b3e035761bdfc2193545c (patch) | |
tree | 07015d7fbdcfbdae23ab2ba925b7b1b0416cd603 | |
parent | 3d6155ab1682e68c30f93064f988247508f55bbe (diff) |
Update blake2-impl.h
-rw-r--r-- | neon/blake2-impl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/neon/blake2-impl.h b/neon/blake2-impl.h index 5dff7fc..c1df82e 100644 --- a/neon/blake2-impl.h +++ b/neon/blake2-impl.h @@ -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 } |