Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e34a209

Browse files
author
Stefan Krah
committed
Fix Visual Studio warning.
1 parent 696d10f commit e34a209

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_decimal/libmpdec/mpdecimal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7431,7 +7431,7 @@ mpd_sizeinbase(mpd_t *a, uint32_t base)
74317431
if (x > 2711437152599294ULL) {
74327432
return SIZE_MAX;
74337433
}
7434-
return (double)x / log10(base) + 3;
7434+
return (size_t)((double)x / log10(base) + 3);
74357435
#endif
74367436
#else /* CONFIG_32 */
74377437
{

0 commit comments

Comments
 (0)