[Python-checkins] cpython: Fix Visual Studio warning.

stefan.krah python-checkins at python.org
Fri Jul 20 12:35:36 CEST 2012


http://hg.python.org/cpython/rev/8563cdf83bb9
changeset:   78190:8563cdf83bb9
user:        Stefan Krah <skrah at bytereef.org>
date:        Fri Jul 20 12:34:18 2012 +0200
summary:
  Fix Visual Studio warning.

files:
  Modules/_decimal/libmpdec/mpdecimal.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Modules/_decimal/libmpdec/mpdecimal.c b/Modules/_decimal/libmpdec/mpdecimal.c
--- a/Modules/_decimal/libmpdec/mpdecimal.c
+++ b/Modules/_decimal/libmpdec/mpdecimal.c
@@ -7540,7 +7540,7 @@
         ideal_exp += shift;
     }
     else {
-        int lsd = mpd_lsd(result->data[0]);
+        int lsd = (int)mpd_lsd(result->data[0]);
         if (lsd == 0 || lsd == 5) {
             result->data[0] += 1;
         }

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list