base: use uintptr_t for hash type
commit97cca6f921e5fcd8ea459b6ac3b76d3f7e19b3b6
authorLuke Howard <lukeh@padl.com>
Thu, 6 Jan 2022 06:21:06 +0000 (6 17:21 +1100)
committerLuke Howard <lukeh@padl.com>
Thu, 6 Jan 2022 06:21:06 +0000 (6 17:21 +1100)
tree4ac36b0ba4218491e812b07543d90bad19067232
parent6b788c237827e7bee7be0cab9d93669a5fab9268
base: use uintptr_t for hash type

Use uintptr_t for hash type; this is consistent with CoreFoundation, which uses
32-bit integers on 32-bit platforms for the hash code, and 64-bit integers on
64-bit platforms. (libheimbase is modelled on CoreFoundation.)

Previously we used unsigned long, which would have the same behavior on
LP32/LP64 systems, but not on Windows (where unsigned long is 32-bits on 64-bit
platforms).
lib/base/data.c
lib/base/dict.c
lib/base/error.c
lib/base/heimbase.c
lib/base/heimbase.h
lib/base/heimbasepriv.h
lib/base/number.c
lib/base/string.c