base: use uintptr_t for hash type