From e34a209584b1cb84f709c3c6129a51904d7a9d2c Mon Sep 17 00:00:00 2001 From: Stefan Krah Date: Wed, 16 May 2012 20:20:03 +0200 Subject: Fix Visual Studio warning. --- Modules/_decimal/libmpdec/mpdecimal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ { -- cgit v0.12