Skip to content

Fix signature on flz_maxcopy to avoid cast error - #11

Open
jeredfloyd wants to merge 1 commit into
ariya:masterfrom
jeredfloyd:maxcopy-sig
Open

Fix signature on flz_maxcopy to avoid cast error#11
jeredfloyd wants to merge 1 commit into
ariya:masterfrom
jeredfloyd:maxcopy-sig

Conversation

@jeredfloyd

Copy link
Copy Markdown

flz_maxcopy takes void* arguments but calls fastlz_memcopy (taking uint8_t* arguments) without a cast, resulting in build errors on ppc64le architecture.

I don't see a reason for flz_maxcopy to not take uint8_t* arguments (as fastlz_memcopy does); for arch-specific speedups these get cast to the appropriately-sized pointer. Any existing code calling with void* arguments should be coerced correctly.

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.

1 participant