Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uintptr test: Fix overflow on architectures with 32-bit pointers #100

Merged
merged 1 commit into from
Jul 9, 2021

Commits on Jul 9, 2021

  1. uintptr test: Fix overflow on architectures with 32-bit pointers

    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
    prashantv committed Jul 9, 2021
    Configuration menu
    Copy the full SHA
    0f53d08 View commit details
    Browse the repository at this point in the history