8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 22:03:03 +01:00

fixed gcc warning

This commit is contained in:
alexpeshkoff 2009-01-13 15:56:17 +00:00
parent d418f1f459
commit 662434dcbe

View File

@ -7300,7 +7300,8 @@ static SSHORT print_item(TEXT** s,
// Don't let numeric/decimal doubles overflow print length
// Special handling for 0 -- don't test log for length
int rounded = 0;
if (dscale && (!value || (rounded = ceil(fabs(log10(fabs(value))))) < length - 10))
if (dscale && (!value ||
(rounded = static_cast<int>(ceil(fabs(log10(fabs(value)))))) < length - 10))
{
int precision = 0;