Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6783662

Browse filesBrowse files
committed
Fix assert
1 parent a684067 commit 6783662
Copy full SHA for 6783662

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎Include/internal/pycore_stackref.h

Copy file name to clipboardExpand all lines: Include/internal/pycore_stackref.h
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.