mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
GH-125174: Don't use UINT32_MAX in header file (GH-127863)
This commit is contained in:
parent
11ff3286b7
commit
9b4bbf4401
1 changed files with 1 additions and 1 deletions
|
|
@ -377,7 +377,7 @@ static inline void Py_DECREF(const char *filename, int lineno, PyObject *op)
|
|||
#if SIZEOF_VOID_P > 4
|
||||
/* If an object has been freed, it will have a negative full refcnt
|
||||
* If it has not it been freed, will have a very large refcnt */
|
||||
if (op->ob_refcnt_full <= 0 || op->ob_refcnt > (UINT32_MAX - (1<<20))) {
|
||||
if (op->ob_refcnt_full <= 0 || op->ob_refcnt > (((PY_UINT32_T)-1) - (1<<20))) {
|
||||
#else
|
||||
if (op->ob_refcnt <= 0) {
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue