[Python-checkins] cpython: Fix Visual Studio warning.
stefan.krah
python-checkins at python.org
Wed May 16 20:21:05 CEST 2012
http://hg.python.org/cpython/rev/87fa250c05cd
changeset: 77005:87fa250c05cd
user: Stefan Krah <skrah at bytereef.org>
date: Wed May 16 20:20:03 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
@@ -7431,7 +7431,7 @@
if (x > 2711437152599294ULL) {
return SIZE_MAX;
}
- return (double)x / log10(base) + 3;
+ return (size_t)((double)x / log10(base) + 3);
#endif
#else /* CONFIG_32 */
{
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list