diff options
author | Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com> | 2018-05-07 10:14:18 +0200 |
---|---|---|
committer | Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com> | 2018-05-24 13:37:31 +0200 |
commit | b7e99006f9c85df28a9f15464e1fd5ed28559028 (patch) | |
tree | 05c8c7b938391d8928b55f6442e5f431118e74b4 /library/chacha20.c | |
parent | 823b7a0ce7f8f4e1b4e7381ad1d38176bb52823a (diff) |
Avoid using %zu in selftest functions
This is a C99 feature and unfortunately we can't rely on it yet considering
the set of toolchain (versions) we want to support.
Diffstat (limited to 'library/chacha20.c')
-rw-r--r-- | library/chacha20.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/chacha20.c b/library/chacha20.c index 5d2c3e5b..28133a67 100644 --- a/library/chacha20.c +++ b/library/chacha20.c @@ -554,14 +554,14 @@ static const size_t test_lengths[2] = int mbedtls_chacha20_self_test( int verbose ) { unsigned char output[381]; - size_t i; + unsigned i; int result; for ( i = 0U; i < 2U; i++ ) { if ( verbose != 0 ) { - mbedtls_printf( " ChaCha20 test %zu ", i ); + mbedtls_printf( " ChaCha20 test %u ", i ); } result = mbedtls_chacha20_crypt( test_keys[i], |