From 02dee3370f1420b208c546194ac67322fe563a24 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 7 Jan 2022 17:18:30 +0100 Subject: refactor: add explicit int types --- src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils.c') diff --git a/src/utils.c b/src/utils.c index 5fc27d3..fa33cb0 100644 --- a/src/utils.c +++ b/src/utils.c @@ -29,7 +29,7 @@ unsigned int str_to_uint(char *str, char **err) char *str_waste; unsigned long num = strtoul(str, &str_waste, 10); - if (strlen(str_waste) != 0) + if (strlen(str_waste) != 0UL) { *err = "Not a number"; return 0; -- cgit v1.2.3-18-g5258