(hash_int) [!defined UINTPTR_MAX]: Use size_t instead of uintptr_t.

This commit is contained in:
Paul Eggert committed 2004-08-02 05:25:33 +00:00
1 parent caef677896
commit 2c223a305b
1 file changed
+4
+4
View File
@@ -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;
}