Fix Visual Studio warning.

This commit is contained in:
Stefan Krah 2012-05-16 20:20:03 +02:00
parent 696d10f1bb
commit e34a209584
1 changed files with 1 additions and 1 deletions

View File

@ -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 */
{