diff options
| author | Stefan Krah <skrah@bytereef.org> | 2012-05-16 18:20:03 (GMT) |
|---|---|---|
| committer | Stefan Krah <skrah@bytereef.org> | 2012-05-16 18:20:03 (GMT) |
| commit | e34a209584b1cb84f709c3c6129a51904d7a9d2c (patch) | |
| tree | 2b97cee76205d0e14a5b1069f426cd2ecfcfd40a | |
| parent | 696d10f1bbc353cefea8048d67502e6a1663073f (diff) | |
| download | cpython-e34a209584b1cb84f709c3c6129a51904d7a9d2c.zip cpython-e34a209584b1cb84f709c3c6129a51904d7a9d2c.tar.gz cpython-e34a209584b1cb84f709c3c6129a51904d7a9d2c.tar.bz2 | |
Fix Visual Studio warning.
| -rw-r--r-- | 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 index 8d343c1..5083710 100644 --- a/Modules/_decimal/libmpdec/mpdecimal.c +++ b/Modules/_decimal/libmpdec/mpdecimal.c @@ -7431,7 +7431,7 @@ mpd_sizeinbase(mpd_t *a, uint32_t base) if (x > 2711437152599294ULL) { return SIZE_MAX; } - return (double)x / log10(base) + 3; + return (size_t)((double)x / log10(base) + 3); #endif #else /* CONFIG_32 */ { |
