Skip to content

Commit 7ba5753

Browse files
committed
Fix PyStackRef_TaggedIntLessThan for Py_STACKREF_DEBUG
1 parent 94ad6f9 commit 7ba5753

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/stackrefs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ PyStackRef_TaggedIntLessThan(_PyStackRef a, _PyStackRef b)
211211
{
212212
assert(PyStackRef_IsTaggedInt(a));
213213
assert(PyStackRef_IsTaggedInt(b));
214-
return a.bits < b.bits;
214+
return ((intptr_t)a.index) < ((intptr_t)b.index);
215215
}
216216

217217
intptr_t

0 commit comments

Comments
 (0)