10000 gh-134893: Fix zstd module build failed when people setup the argument without debug mode by Zheaoli · Pull Request #134894 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-134893: Fix zstd module build failed when people setup the argument without debug mode #134894

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix zstd module build failed when people setup the argument without debug
mode
6 changes: 6 additions & 0 deletions Modules/_zstd/compressor.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,12 @@ mt_continue_should_break(ZSTD_inBuffer *in, ZSTD_outBuffer *out)
{
return in->size == in->pos && out->size != out->pos;
}
#else
static inline int
mt_continue_should_break(ZSTD_inBuffer *in, ZSTD_outBuffer *out)
{
return 1;
}
#endif

static PyObject *
Expand Down
Loading
0