diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2020-11-04 12:04:55 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2020-11-04 12:04:55 -0500 |
commit | 9e15e076c1f3e647b1f7ed7e3c12a1f23fdbe98c (patch) | |
tree | ac3c1e11ce7e4a7a1fd53459b3e0e4f9e2892188 /bftw.c | |
parent | 726d78019593d5b5f192d2962f5bc975bfe85785 (diff) | |
download | bfs-9e15e076c1f3e647b1f7ed7e3c12a1f23fdbe98c.tar.xz |
Enable -Wsign-compare to catch bugs like 726d7801
Diffstat (limited to 'bftw.c')
-rw-r--r-- | bftw.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -426,7 +426,7 @@ static int bftw_file_open(struct bftw_cache *cache, struct bftw_file *file, cons // Handle ENAMETOOLONG by manually traversing the path component-by-component // -1 to include the root, which has depth == 0 - size_t offset = base ? base->depth : -1; + size_t offset = base ? base->depth : (size_t)-1; size_t levels = file->depth - offset; if (levels < 2) { return fd; |