File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -563,7 +563,6 @@ gen_try_set_executing(PyGenObject *gen)
563563 ->ob_fval = _dres; \
564564 } while (0)
565565
566- // Inplace compact int operation. Computes left OP right and attempts to
567566// Inplace compact int operation. TARGET is expected to be uniquely
568567// referenced at the optimizer level, but at runtime it may be a
569568// cached small int singleton. We check _Py_IsImmortal on TARGET
@@ -591,10 +590,10 @@ gen_try_set_executing(PyGenObject *gen)
591590 < (twodigits)PyLong_MASK + PyLong_BASE)) \
592591 { \
593592 PyLongObject *_target = (PyLongObject *)_target_o; \
594- Py_ssize_t _sign = _result < 0 ? -1 : 1; \
593+ int _sign = _result < 0 ? -1 : 1; \
595594 digit _abs = (digit)(_result < 0 ? -_result : _result); \
596595 _target->long_value.lv_tag = \
597- (Py_ssize_t) _sign << _PyLong_NON_SIZE_BITS; \
596+ TAG_FROM_SIGN_AND_SIZE( _sign, 1); \
598597 _target->long_value.ob_digit[0] = _abs; \
599598 _int_inplace_ok = 1; \
600599 } \
You can’t perform that action at this time.
0 commit comments