mirror of
https://github.com/BLAKE2/BLAKE2
synced 2024-11-08 14:59:19 +01:00
commit
320c325437
@ -72,8 +72,8 @@ static BLAKE2_INLINE uint16_t load16( const void *src )
|
|||||||
return w;
|
return w;
|
||||||
#else
|
#else
|
||||||
const uint8_t *p = ( const uint8_t * )src;
|
const uint8_t *p = ( const uint8_t * )src;
|
||||||
return (( uint16_t )( p[0] ) << 0) |
|
return ( uint16_t )((( uint32_t )( p[0] ) << 0) |
|
||||||
(( uint16_t )( p[1] ) << 8) ;
|
(( uint32_t )( p[1] ) << 8));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -72,8 +72,8 @@ static BLAKE2_INLINE uint16_t load16( const void *src )
|
|||||||
return w;
|
return w;
|
||||||
#else
|
#else
|
||||||
const uint8_t *p = ( const uint8_t * )src;
|
const uint8_t *p = ( const uint8_t * )src;
|
||||||
return (( uint16_t )( p[0] ) << 0) |
|
return ( uint16_t )((( uint32_t )( p[0] ) << 0) |
|
||||||
(( uint16_t )( p[1] ) << 8) ;
|
(( uint32_t )( p[1] ) << 8));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -72,8 +72,8 @@ static BLAKE2_INLINE uint16_t load16( const void *src )
|
|||||||
return w;
|
return w;
|
||||||
#else
|
#else
|
||||||
const uint8_t *p = ( const uint8_t * )src;
|
const uint8_t *p = ( const uint8_t * )src;
|
||||||
return (( uint16_t )( p[0] ) << 0) |
|
return ( uint16_t )((( uint32_t )( p[0] ) << 0) |
|
||||||
(( uint16_t )( p[1] ) << 8) ;
|
(( uint32_t )( p[1] ) << 8));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user