Skip to content

Fix signature on flz_maxcopy to avoid cast error - #13532

Merged
bneradt merged 1 commit into
apache:masterfrom
jeredfloyd:fastlz-cast
Aug 11, 2026
Merged

Fix signature on flz_maxcopy to avoid cast error#13532
bneradt merged 1 commit into
apache:masterfrom
jeredfloyd:fastlz-cast

Conversation

@jeredfloyd

Copy link
Copy Markdown
Contributor

flz_maxcopy takes void* arguments but calls fastlz_memcopy (taking uint8_t* arguments) without a cast. I don't see a reason for flz_maxcopy to not take uint8_t* arguments; for arch-specific speedups these get cast to the appropriately-sized pointer. Resolves build issues on ppc64le architecture.

@bneradt bneradt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable. Maybe submit a PR upstream?

https://github.com/ariya/FastLZ/

The lib/ directory contains third party code. When we update to a newer version, we will likely lose your change here unless this is changed in upstream.

@jeredfloyd

jeredfloyd commented Aug 11, 2026

Copy link
Copy Markdown
Contributor Author

Done: ariya/FastLZ#11

@bneradt bneradt added the Build work related to build configuration or environment label Aug 11, 2026
@bneradt bneradt added this to the 11.0.0 milestone Aug 11, 2026
@bneradt
bneradt merged commit ad0b638 into apache:master Aug 11, 2026
15 checks passed
@jeredfloyd
jeredfloyd deleted the fastlz-cast branch August 11, 2026 16:55
@github-project-automation github-project-automation Bot moved this to For v10.2.0 in ATS v10.2.x Aug 11, 2026
cmcfarlen pushed a commit that referenced this pull request Aug 12, 2026
flz_maxcopy takes void* arguments but calls fastlz_memcopy (taking uint8_t* arguments) without a cast. I don't see a reason for flz_maxcopy to not take uint8_t* arguments; for arch-specific speedups these get cast to the appropriately-sized pointer. Resolves build issues on ppc64le architecture.

(cherry picked from commit ad0b638)
@cmcfarlen cmcfarlen moved this from For v10.2.0 to Picked v10.2.0 in ATS v10.2.x Aug 12, 2026
@cmcfarlen cmcfarlen modified the milestones: 11.0.0, 10.2.0 Aug 12, 2026
@cmcfarlen

Copy link
Copy Markdown
Contributor

Cherry-picked to the 10.2.x branch as a69c898 for the 10.2.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Build work related to build configuration or environment

Projects

Status: Picked v10.2.0

Development

Successfully merging this pull request may close these issues.

3 participants