Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
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
Next Next commit
Fix PyStackRef_IsError for gil-enabled build
  • Loading branch information
sergey-miryanov committed Sep 27, 2025
commit e0ff9f8ced2b5126e962d3cd83bcb480f2a00cb7
2 changes: 1 addition & 1 deletion Include/internal/pycore_stackref.h
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ PyStackRef_Unwrap(_PyStackRef ref)
static inline bool
PyStackRef_IsError(_PyStackRef ref)
{
return ref.bits == Py_TAG_INVALID;
return (ref.bits & Py_TAG_BITS) == Py_TAG_INVALID;
}

static inline bool
Expand Down