commit d4a4c72e002a0529157531f1af6a8d91200f5f15
parent a7aae4006906cfa0533fd18fb3457e90a3acaf8a
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date: Fri, 2 Jul 2021 20:34:02 +0530
Fix off_t to uint_t comparison warning
The man page says:
"blkcnt_t and off_t shall be signed integer types."
https://man7.org/linux/man-pages/man0/sys_types.h.0p.html
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/nnn.c b/src/nnn.c
@@ -3556,7 +3556,7 @@ static wchar_t *unescape(const char *str, uint_t maxcols)
return wbuf;
}
-static off_t get_size(off_t size, off_t *pval, uint_t comp)
+static off_t get_size(off_t size, off_t *pval, int comp)
{
off_t rem = *pval;
off_t quo = rem / 10;