From cb708e8fa3405ec13a0ebfebbbf2793f927deab1 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Mon, 24 Jun 2019 20:53:55 +0300 Subject: Tests: Silence a warning from -Wsign-conversion. --- tests/create_compress_files.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/create_compress_files.c') diff --git a/tests/create_compress_files.c b/tests/create_compress_files.c index bd5b4ef4..88d60b73 100644 --- a/tests/create_compress_files.c +++ b/tests/create_compress_files.c @@ -94,10 +94,10 @@ write_random(FILE *file) for (size_t i = 0; i < 123456; ++i) { n = 101771 * n + 71777; - putc(n & 0xFF, file); - putc((n >> 8) & 0xFF, file); - putc((n >> 16) & 0xFF, file); - putc(n >> 24, file); + putc((uint8_t)(n), file); + putc((uint8_t)(n >> 8), file); + putc((uint8_t)(n >> 16), file); + putc((uint8_t)(n >> 24), file); } } -- cgit v1.2.3