Skip to content

Commit 6783662

Browse files
committed
Fix assert
1 parent a684067 commit 6783662

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Include/internal/pycore_stackref.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ static inline _PyStackRef
278278
PyStackRef_IncrementTaggedIntNoOverflow(_PyStackRef ref)
279279
{
280280
assert((ref.bits & Py_TAG_BITS) == Py_INT_TAG); // Is tagged int
281-
assert((ref.bits & (~Py_TAG_BITS)) != (INT_MAX & (~Py_TAG_BITS))); // Isn't about to overflow
281+
assert((ref.bits & (~Py_TAG_BITS)) != (INTPTR_MAX & (~Py_TAG_BITS))); // Isn't about to overflow
282282
return (_PyStackRef){ .bits = ref.bits + 4 };
283283
}
284284

0 commit comments

Comments
 (0)