logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git
commit: 372e15f6b6f7ab7c7554980db09f381ea2c64e2b
parent 9ce5d0090d7ae5c97c9e756d5c8fe3063b445d70
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 24 Oct 2021 14:45:19 +0200

bin/sizeof: Fix conversion warning

Diffstat:

Mbin/sizeof.c4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/bin/sizeof.c b/bin/sizeof.c @@ -19,9 +19,7 @@ static const char *format_m = "sizeof(%s) == %d bytes; %d bits; (MIN:MAX) == (%d static void print_size(size_t size, char *type) { - int c; - c = size; - printf(format, type, c, c * CHAR_BIT); + printf(format, type, size, size * CHAR_BIT); } int