From: Lennart Poettering Date: Thu, 29 Jul 2021 16:47:04 +0000 (+0200) Subject: macro: change DECIMAL_STR_WIDTH() return type to size_t, like strlen() and so on X-Git-Tag: v250-rc1~885^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d844529dc7a6c40d17d8ce74091dce1ec77d65b6;p=thirdparty%2Fsystemd.git macro: change DECIMAL_STR_WIDTH() return type to size_t, like strlen() and so on --- diff --git a/src/basic/macro.h b/src/basic/macro.h index 829d8dc8a70..90f4e02d190 100644 --- a/src/basic/macro.h +++ b/src/basic/macro.h @@ -350,7 +350,7 @@ static inline int __coverity_check_and_return__(int condition) { #define DECIMAL_STR_WIDTH(x) \ ({ \ typeof(x) _x_ = (x); \ - unsigned ans = 1; \ + size_t ans = 1; \ while ((_x_ /= 10) != 0) \ ans++; \ ans; \