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 handling of 0x8000000 in compression #297

Merged
merged 1 commit into from Jan 11, 2016

Conversation

tfredian
Copy link
Contributor

This fix should deal with what may be an old bug (http://marc.info/?l=gcc-bugs&m=130392514411475&w=2) in the gcc compiler with the logic handling the the 32-bit value of 0x80000000.

The code now tests for this 0x80000000 value and sets the bit width to 32 otherwise it uses the original logic.

This bug turned out to be much more subtle than previously thought. It only appeared when using certain versions of gcc and only when compiled with -O2 or higher. So attempting to debug the problem was difficult.

joshStillerman added a commit that referenced this pull request Jan 11, 2016
Fix handling of 0x8000000 in compression
@joshStillerman joshStillerman merged commit 0cf5848 into alpha Jan 11, 2016
zack-vii added a commit to zack-vii/mdsplus that referenced this pull request Jan 12, 2016
…again2"

This reverts commit 0cf5848, reversing
changes made to 80ebb00.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants