mirror of
https://github.com/python/cpython.git
synced 2025-10-02 05:12:23 +00:00
[3.14] gh-134768: Fix definition of mt_continue_should_break()
(GH-134769) (#134916)
gh-134768: Fix definition of `mt_continue_should_break()` (GH-134769) In121ed71f4e
, 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. (cherry picked from commit2f2bee2111
) Fixes:121ed71f4e
Co-authored-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
370f91b946
commit
e0e8f28f27
1 changed files with 1 additions and 1 deletions
|
@ -512,7 +512,7 @@ error:
|
|||
return NULL;
|
||||
}
|
||||
|
||||
#ifdef Py_DEBUG
|
||||
#ifndef NDEBUG
|
||||
static inline int
|
||||
mt_continue_should_break(ZSTD_inBuffer *in, ZSTD_outBuffer *out)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue