summaryrefslogtreecommitdiffstats
path: root/color.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2019-09-03 17:15:29 -0400
committerTavian Barnes <tavianator@tavianator.com>2019-09-03 17:15:29 -0400
commit1563c3113710463d07f52d6f042a01c56a9ea795 (patch)
tree30c617bc26675f2413d4789eadd546121674129c /color.c
parente2f526768e1d91893dc2772962be8155205b9c50 (diff)
downloadbfs-1563c3113710463d07f52d6f042a01c56a9ea795.tar.xz
color: Fix unsigned < 0 comparison
Diffstat (limited to 'color.c')
-rw-r--r--color.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/color.c b/color.c
index dde989d..aecee74 100644
--- a/color.c
+++ b/color.c
@@ -778,7 +778,7 @@ static int print_dirs_colored(CFILE *cfile, const char *path, const struct BFTW
const struct colors *colors = cfile->colors;
FILE *file = cfile->file;
- size_t broken = first_broken_offset(path, ftwbuf, flags, nameoff);
+ ssize_t broken = first_broken_offset(path, ftwbuf, flags, nameoff);
if (broken < 0) {
return -1;
}