Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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.

2 participants