From: Paul Eggert Date: Mon, 2 Aug 2004 05:25:33 +0000 (+0000) Subject: (hash_int) [!defined UINTPTR_MAX]: Use size_t instead of uintptr_t. X-Git-Tag: v5.3.0~978 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c223a305b7b3bd212cceb25cd61d0e9bc810fe0;p=thirdparty%2Fcoreutils.git (hash_int) [!defined UINTPTR_MAX]: Use size_t instead of uintptr_t. --- diff --git a/src/cut.c b/src/cut.c index df6ade497b..4cb80fe13c 100644 --- a/src/cut.c +++ b/src/cut.c @@ -242,7 +242,11 @@ is_printable_field (size_t i) static size_t hash_int (const void *x, size_t tablesize) { +#ifdef UINTPTR_MAX uintptr_t y = (uintptr_t) x; +#else + size_t y = (size_t) x; +#endif return y % tablesize; }