From 2051f7ec13fb5c48aaf60d2dae3d4780ed7b2459 Mon Sep 17 00:00:00 2001 From: AlexPeshkoff Date: Mon, 5 Apr 2021 14:53:46 +0300 Subject: [PATCH] This should fix windows build --- src/common/cvt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/cvt.cpp b/src/common/cvt.cpp index 979f3a2155..34484475dd 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 && 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; }