macro: change DECIMAL_STR_WIDTH() return type to size_t, like strlen() and so on

This commit is contained in:
Lennart Poettering
2021-07-30 15:59:29 +02:00
parent 777003365a
commit d844529dc7
+1 -1
View File
@@ -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; \