From: Arun Prakash Jana Date: Fri, 2 Jul 2021 15:04:02 +0000 (+0530) Subject: Fix off_t to uint_t comparison warning X-Git-Tag: v4.2~41 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=d4a4c72e002a0529157531f1af6a8d91200f5f15;p=nnn.git 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 --- 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;