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 LZ4HC_HEAPMODE macro guard #1005

Merged
merged 1 commit into from Jun 25, 2021

Conversation

ITotalJustice
Copy link
Contributor

@ITotalJustice ITotalJustice commented Jun 25, 2021

Hi, this commit fixes the macro guard incorrectly using #ifdef LZ4HC_HEAPMODE around heap related functions, even though LZ4HC_HEAPMODE will always be defined at the top of lz4hc.c

I used #if defined(LZ4HC_HEAPMODE) && LZ4HC_HEAPMODE==1 because that's what was used in LZ4HC_compress_optimal() and i assume it's just to workaround users #undef or deleting the macro rather than setting it to zero

@Cyan4973
Copy link
Member

Thanks @ITotalJustice !

@Cyan4973 Cyan4973 merged commit 11efc95 into lz4:dev Jun 25, 2021
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