Skip to content

Commit 4213582

Browse files
committed
fix test
1 parent 73fa01c commit 4213582

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Lib/test/test_sys.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1461,7 +1461,7 @@ def delx(self): del self.__x
14611461
# PyCapsule
14621462
# XXX
14631463
# rangeiterator
1464-
check(iter(range(1)), size('4l'))
1464+
check(iter(range(1)), size('') + 4 * self.longdigit)
14651465
# reverse
14661466
check(reversed(''), size('nP'))
14671467
# range

Python/ceval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4419,7 +4419,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
44194419
}
44204420
if (local && PyLong_CheckExact(local) && Py_REFCNT(local) == 1) {
44214421
if (value > 0) {
4422-
assert(value <= PyLong_MASK);
4422+
assert((digit)value <= PyLong_MASK);
44234423
((PyLongObject *)local)->ob_digit[0] = value;
44244424
Py_SET_SIZE(local, 1);
44254425
}

0 commit comments

Comments
 (0)