summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-11-16 19:17:16 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-11-16 19:17:16 (GMT)
commit3d6790e49fb0267dbc8550b76411cdda412bf0e8 (patch)
tree0efcfa2edca44b12e57d443c1ebc9d217179d730 /Objects
parentb2c3ca1e38dacdbcdbad088628968f381de7a4a4 (diff)
downloadcpython-3d6790e49fb0267dbc8550b76411cdda412bf0e8.zip
cpython-3d6790e49fb0267dbc8550b76411cdda412bf0e8.tar.gz
cpython-3d6790e49fb0267dbc8550b76411cdda412bf0e8.tar.bz2
Silence another MSVC warning about unary minus.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/intobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/intobject.c b/Objects/intobject.c
index 8a8972c..dce569a 100644
--- a/Objects/intobject.c
+++ b/Objects/intobject.c
@@ -1117,7 +1117,7 @@ int_to_decimal_string(PyIntObject *v) {
long n = v->ob_ival;
unsigned long absn;
p = bufend = buf + sizeof(buf);
- absn = n < 0 ? -(unsigned long)n : n;
+ absn = n < 0 ? 0UL - n : n;
do {
*--p = '0' + absn % 10;
absn /= 10;