From 6ee023cf629c83af8d10b383ab0780ec043f0785 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 23 Aug 2007 10:52:52 +0000 Subject: *: compile fixes for 64-bit build --- findutils/find.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'findutils') 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 -- cgit v1.1