We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dbada1 commit 8272660Copy full SHA for 8272660
Objects/longobject.c
@@ -337,7 +337,7 @@ medium_from_stwodigits(stwodigits x)
337
}
338
_PyObject_Init((PyObject*)v, &PyLong_Type);
339
340
- digit abs_x = x < 0 ? -x : x;
+ digit abs_x = x < 0 ? (digit)(-x) : (digit)x;
341
_PyLong_SetSignAndDigitCount(v, x<0?-1:1, 1);
342
v->long_value.ob_digit[0] = abs_x;
343
return PyStackRef_FromPyObjectStealMortal((PyObject *)v);
0 commit comments