Skip to content

Commit 11a5fb9

Browse files
committed
gh-134768: Fix definition of mt_continue_should_break()
In 121ed71, mt_continue_should_break was changed to be guarded by `Py_DEBUG`, but it's used in `compress_mt_continue_lock_held` with just `assert`, so it needs to be available when `NDEBUG` is undefined too. `Py_DEBUG` implies `NDEBUG` is undefined, so we can check just that. Fixes: 121ed71
1 parent 9bf03c6 commit 11a5fb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_zstd/compressor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ compress_lock_held(ZstdCompressor *self, Py_buffer *data,
489489
return NULL;
490490
}
491491

492-
#ifdef Py_DEBUG
492+
#ifndef NDEBUG
493493
static inline int
494494
mt_continue_should_break(ZSTD_inBuffer *in, ZSTD_outBuffer *out)
495495
{

0 commit comments

Comments
 (0)