[RDRAND] use better C type for casting to prevent a warmless warning

This commit is contained in:
Vincent Hanquez 2015-04-11 15:12:51 +01:00
parent e302eb51ba
commit c9a28daf0c

View File

@ -69,7 +69,7 @@ static inline int crypto_random_rdrand64_step(uint64_t *buffer)
int cryptonite_get_rand_bytes(uint8_t *buffer, size_t len)
{
uint64_t tmp;
int aligned = (unsigned long) buffer % 8;
int aligned = (intptr_t) buffer % 8;
int orig_len = len;
int to_alignment = 8 - aligned;
uint8_t ok;