From d4a4c72e002a0529157531f1af6a8d91200f5f15 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Fri, 2 Jul 2021 20:34:02 +0530 Subject: [PATCH] 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 --- src/nnn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nnn.c b/src/nnn.c index fcea6c97..82e199c5 100644 --- 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;