Skip to content

Conversation

@eisenhauer
Copy link
Member

SZ3 versions 3.1 and 3.2 differ from released but not available in spack version 3.3. This formulation seems to work with all.

SZ3 3.1 changed the SZ_decompress API signature to require char* instead
of const char* for the compressed data buffer. Use const_cast to adapt to
this change while maintaining const-correctness in our API.

The const_cast is safe because SZ_decompress only reads from the buffer
and does not modify it. SZ3 3.3.2 restored const-correctness to the API,
making the cast a no-op for that version.

Tested with SZ3 3.1.8, 3.2.0, and 3.3.2.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@vicentebolea vicentebolea self-requested a review January 8, 2026 17:56
@eisenhauer eisenhauer merged commit 059ca50 into ornladios:master Jan 8, 2026
38 of 40 checks passed
@eisenhauer eisenhauer deleted the sz3-3.2-compatibility branch January 8, 2026 17:57
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