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.
diff --git a/library/poly1305.c b/library/poly1305.c
index 6acbc7f..5a09658 100644
--- a/library/poly1305.c
+++ b/library/poly1305.c
@@ -485,14 +485,14 @@
int mbedtls_poly1305_self_test( int verbose )
{
unsigned char mac[16];
- size_t i;
+ unsigned i;
int result;
for ( i = 0U; i < 2U; i++ )
{
if ( verbose != 0 )
{
- mbedtls_printf( " Poly1305 test %zu ", i );
+ mbedtls_printf( " Poly1305 test %u ", i );
}
result = mbedtls_poly1305_mac( test_keys[i],