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

Fix false positive test failure on 32 bits #1749

Merged
merged 1 commit into from
Mar 24, 2017

Conversation

Praetonus
Copy link
Member

The DigestofObject test was failing because of a problem in the ptr_to_int helper function. This function was casting a pointer to intptr_t, resulting in an incorrect sign extension. The function now casts to uintptr_t, with the correct behaviour of a zero extension.

This doesn't fix any actual correctness issue in Pony programs.

@luigino Could you test an see if it fixes #1747 for you?

The DigestofObject test was failing because of a problem in the
`ptr_to_int` helper function. This function was casting a pointer to
intptr_t, resulting in an incorrect sign extension. The function now
casts to uintptr_t, with the correct behaviour of a zero extension.

This doesn't fix any actual correctness issue in Pony programs.

Closes ponylang#1747.
@Praetonus Praetonus added the changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge label Mar 24, 2017
@Praetonus Praetonus merged commit cf15d81 into ponylang:master Mar 24, 2017
@Praetonus Praetonus deleted the test-digestof-32bits branch March 24, 2017 11:19
ponylang-main added a commit that referenced this pull request Mar 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CodegenIdentityTest.DigestofObject failure on 32bit archs
1 participant