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

This should fix windows build

This commit is contained in:
AlexPeshkoff 2021-04-05 14:53:46 +03:00
parent 2af0689450
commit 2051f7ec13

View File

@ -1735,7 +1735,7 @@ void CVT_move_common(const dsc* from, dsc* to, Callbacks* cb)
case dtype_real:
{
double d_value = CVT_get_double(from, cb->err);
if (ABSOLUT(d_value) > FLOAT_MAX && ABSOLUT(d_value) != INFINITY)
if (ABSOLUT(d_value) > FLOAT_MAX && !isinf(ABSOLUT(d_value)))
cb->err(Arg::Gds(isc_arith_except) << Arg::Gds(isc_numeric_out_of_range));
*(float*) p = (float) d_value;
}