summaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-05-17 16:10:00 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-05-17 17:46:16 -0400
commitcf9230659e8d64e95209a4d57cbda8a474049ddb (patch)
tree8df76d6a165473a26f08dbfea9da5ad442460073 /src/eval.c
parent23e048793401900c8d1768b4ffb0fc4ff623ef3e (diff)
downloadbfs-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/eval.c')
-rw-r--r--src/eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c
index 49028b7..4fcda60 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -1270,7 +1270,7 @@ static void debug_stat(const struct bfs_ctx *ctx, const struct BFTW *ftwbuf, enu
bfs_debug_prefix(ctx, DEBUG_STAT);
fprintf(stderr, "bfs_stat(");
- if (ftwbuf->at_fd == AT_FDCWD) {
+ if (ftwbuf->at_fd == (int)AT_FDCWD) {
fprintf(stderr, "AT_FDCWD");
} else {
size_t baselen = strlen(ftwbuf->path) - strlen(ftwbuf->at_path);