Skip to content

Commit d3fa06a

Browse files
committed
pythongh-134893: Fix zstd module build failed when people setup the argument without debug mode
Signed-off-by: Manjusaka <[email protected]>
1 parent e64395e commit d3fa06a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Modules/_zstd/compressor.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,12 @@ mt_continue_should_break(ZSTD_inBuffer *in, ZSTD_outBuffer *out)
518518
{
519519
return in->size == in->pos && out->size != out->pos;
520520
}
521+
#else
522+
static inline int
523+
mt_continue_should_break(ZSTD_inBuffer *in, ZSTD_outBuffer *out)
524+
{
525+
return 1;
526+
}
521527
#endif
522528

523529
static PyObject *

0 commit comments

Comments
 (0)