LONG_LONG_* -> LLONG_*
This commit is contained in:
parent
a3b81c323a
commit
a1dff41891
@ -501,10 +501,10 @@ randombytes_salsa20_random_buf(void * const buf, const size_t size)
|
|||||||
|
|
||||||
randombytes_salsa20_random_stir_if_needed();
|
randombytes_salsa20_random_stir_if_needed();
|
||||||
COMPILER_ASSERT(sizeof stream.nonce == crypto_stream_salsa20_NONCEBYTES);
|
COMPILER_ASSERT(sizeof stream.nonce == crypto_stream_salsa20_NONCEBYTES);
|
||||||
#if defined(ULONG_LONG_MAX) && defined(SIZE_MAX)
|
#if defined(ULLONG_MAX) && defined(SIZE_MAX)
|
||||||
# if SIZE_MAX > ULONG_LONG_MAX
|
# if SIZE_MAX > ULLONG_MAX
|
||||||
/* coverity[result_independent_of_operands] */
|
/* coverity[result_independent_of_operands] */
|
||||||
assert(size <= ULONG_LONG_MAX);
|
assert(size <= ULLONG_MAX);
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
ret = crypto_stream_salsa20((unsigned char *) buf, (unsigned long long) size,
|
ret = crypto_stream_salsa20((unsigned char *) buf, (unsigned long long) size,
|
||||||
|
@ -335,10 +335,10 @@ static void
|
|||||||
randombytes_sysrandom_buf(void * const buf, const size_t size)
|
randombytes_sysrandom_buf(void * const buf, const size_t size)
|
||||||
{
|
{
|
||||||
randombytes_sysrandom_stir_if_needed();
|
randombytes_sysrandom_stir_if_needed();
|
||||||
# if defined(ULONG_LONG_MAX) && defined(SIZE_MAX)
|
# if defined(ULLONG_MAX) && defined(SIZE_MAX)
|
||||||
# if SIZE_MAX > ULONG_LONG_MAX
|
# if SIZE_MAX > ULLONG_MAX
|
||||||
/* coverity[result_independent_of_operands] */
|
/* coverity[result_independent_of_operands] */
|
||||||
assert(size <= ULONG_LONG_MAX);
|
assert(size <= ULLONG_MAX);
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
# ifndef _WIN32
|
# ifndef _WIN32
|
||||||
|
Loading…
Reference in New Issue
Block a user