diff options
Diffstat (limited to 'findutils')
-rw-r--r-- | findutils/find.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/findutils/find.c b/findutils/find.c index 86f787d..2158468 100644 --- a/findutils/find.c +++ b/findutils/find.c @@ -881,7 +881,9 @@ USE_FEATURE_FIND_MAXDEPTH(OPT_MAXDEPTH,) fileAction, /* file action */ fileAction, /* dir action */ #if ENABLE_FEATURE_FIND_MAXDEPTH - (void*)maxdepth,/* user data */ + /* double cast suppresses + * "cast to ptr from int of different size" */ + (void*)(ptrdiff_t)maxdepth,/* user data */ #else NULL, /* user data */ #endif |