diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-05-17 16:10:00 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-05-17 17:46:16 -0400 |
commit | cf9230659e8d64e95209a4d57cbda8a474049ddb (patch) | |
tree | 8df76d6a165473a26f08dbfea9da5ad442460073 /src/fsade.c | |
parent | 23e048793401900c8d1768b4ffb0fc4ff623ef3e (diff) | |
download | bfs-cf9230659e8d64e95209a4d57cbda8a474049ddb.tar.xz |
Cast AT_FDCWD to int for comparisons
Some platforms define AT_FDCWD to a constant like 0xFFFAFDCD that gets
typed as an unsigned int.
Diffstat (limited to 'src/fsade.c')
-rw-r--r-- | src/fsade.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fsade.c b/src/fsade.c index d56fb07..7310141 100644 --- a/src/fsade.c +++ b/src/fsade.c @@ -41,7 +41,7 @@ static const char *fake_at(const struct BFTW *ftwbuf) { static atomic int proc_works = -1; dchar *path = NULL; - if (ftwbuf->at_fd == AT_FDCWD || load(&proc_works, relaxed) == 0) { + if (ftwbuf->at_fd == (int)AT_FDCWD || load(&proc_works, relaxed) == 0) { goto fail; } |