diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-02 05:25:33 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-02 05:25:33 +0000 |
commit | 2c223a305b7b3bd212cceb25cd61d0e9bc810fe0 (patch) | |
tree | 64b142ddae845ea194c92ca7af0e87dc8ab75d88 | |
parent | caef677896b91e2e0acf2a1b58012a7779ccaf8d (diff) | |
download | coreutils-2c223a305b7b3bd212cceb25cd61d0e9bc810fe0.tar.xz |
(hash_int) [!defined UINTPTR_MAX]: Use size_t instead of uintptr_t.
-rw-r--r-- | src/cut.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; } |