From 3d6790e49fb0267dbc8550b76411cdda412bf0e8 Mon Sep 17 00:00:00 2001 From: Mark Dickinson Date: Mon, 16 Nov 2009 19:17:16 +0000 Subject: [PATCH] Silence another MSVC warning about unary minus. --- Objects/intobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/intobject.c b/Objects/intobject.c index 8a8972c711d..dce569a6efa 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;