mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
gh-131782: Fix cast to match type of bits in _Py_TryIncrefCompareStackRef (#131783)
This commit is contained in:
parent
151d1bfd1b
commit
c824d8e6f9
1 changed files with 1 additions and 1 deletions
|
|
@ -668,7 +668,7 @@ static inline int
|
||||||
_Py_TryIncrefCompareStackRef(PyObject **src, PyObject *op, _PyStackRef *out)
|
_Py_TryIncrefCompareStackRef(PyObject **src, PyObject *op, _PyStackRef *out)
|
||||||
{
|
{
|
||||||
if (_PyObject_HasDeferredRefcount(op)) {
|
if (_PyObject_HasDeferredRefcount(op)) {
|
||||||
*out = (_PyStackRef){ .bits = (intptr_t)op | Py_TAG_DEFERRED };
|
*out = (_PyStackRef){ .bits = (uintptr_t)op | Py_TAG_DEFERRED };
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if (_Py_TryIncrefCompare(src, op)) {
|
if (_Py_TryIncrefCompare(src, op)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue