mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Silence another MSVC warning about unary minus.
This commit is contained in:
parent
b2c3ca1e38
commit
3d6790e49f
1 changed files with 1 additions and 1 deletions
|
@ -1117,7 +1117,7 @@ int_to_decimal_string(PyIntObject *v) {
|
||||||
long n = v->ob_ival;
|
long n = v->ob_ival;
|
||||||
unsigned long absn;
|
unsigned long absn;
|
||||||
p = bufend = buf + sizeof(buf);
|
p = bufend = buf + sizeof(buf);
|
||||||
absn = n < 0 ? -(unsigned long)n : n;
|
absn = n < 0 ? 0UL - n : n;
|
||||||
do {
|
do {
|
||||||
*--p = '0' + absn % 10;
|
*--p = '0' + absn % 10;
|
||||||
absn /= 10;
|
absn /= 10;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue