diff options
author | HampusM <hampus@hampusmat.com> | 2022-01-07 17:18:30 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-01-07 17:18:30 +0100 |
commit | 02dee3370f1420b208c546194ac67322fe563a24 (patch) | |
tree | 183df0b5267c233d658f0fd3cb5bfd87eb11b402 /src/utils.c | |
parent | 813c98b028c9ba484fb5b21a60067ae35cc925ff (diff) |
refactor: add explicit int types
Diffstat (limited to 'src/utils.c')
-rw-r--r-- | src/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |