diff --git a/src/common/cvt.cpp b/src/common/cvt.cpp index 608358445c..979f3a2155 100644 --- a/src/common/cvt.cpp +++ b/src/common/cvt.cpp @@ -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) + if (ABSOLUT(d_value) > FLOAT_MAX && ABSOLUT(d_value) != INFINITY) cb->err(Arg::Gds(isc_arith_except) << Arg::Gds(isc_numeric_out_of_range)); *(float*) p = (float) d_value; }