Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
uintptr test: Fix overflow on architectures with 32-bit pointers (#100)
Fixes #99 The current uintptr test assumes that pointers are 64-bit, so the test fails to compile on architectures with 32-bit pointers. Instead, cast -1 to uintptr, which matches math.MaxUint64 on 64-bit architectures, and math.MaxUint32 on 32-bit architectures. Verified by using GOARCH=386
- Loading branch information