Skip to content

Fix C++ build on AArch64: cast -MINMATCH to U32 in NEON table - #5070

Merged
terrelln merged 1 commit into
meta:devfrom
yasha1971-coder:fix/zstd-arm-cxx-neon-minmatch
Nov 30, 2026
Merged

terrelln merged 1 commit into
meta:devfrom
yasha1971-coder:fix/zstd-arm-cxx-neon-minmatch

Conversation

@yasha1971-coder

Copy link
Copy Markdown
Contributor

Building lib as C++ for AArch64 fails on dev (e50cdb0) and v1.6.0:
aarch64-linux-gnu-g++ 13.3 -x c++ -fsyntax-only -Ilib lib/compress/zstd_compress.c
-> zstd_compress.c:7603: narrowing conversion of '-3' from 'int' to 'U32'.
The patch casts -MINMATCH to U32 in the NEON constAddition initializer; C-build output is unchanged (silesia levels 1/3/19 give identical archives). Requested in #5061.
Is this OK as a standalone portability fix?

AI-assisted, checked by the author.

@meta-cla meta-cla Bot added the CLA Signed label Nov 30, 2026
@terrelln
terrelln merged commit 9a57681 into meta:dev Nov 30, 2026
113 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants