From fdb21252b090c98754640faa2892c22d8e03a89e Mon Sep 17 00:00:00 2001 From: Ralph Lange Date: Tue, 5 Aug 2014 11:20:23 +0200 Subject: [PATCH] ioc/db (recGblCheckDeadband): avoid signbit() which does not exist on older MSVC installations --- src/ioc/db/recGbl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ioc/db/recGbl.c b/src/ioc/db/recGbl.c index f7dfee333..26799386d 100644 --- a/src/ioc/db/recGbl.c +++ b/src/ioc/db/recGbl.c @@ -287,7 +287,7 @@ void recGblCheckDeadband(epicsFloat64 *poldval, const epicsFloat64 newval, } else if (!!isnan(newval) != !!isnan(*poldval) || !!isinf(newval) != !!isinf(*poldval)) { /* one is NaN or +-inf, the other not -> send update */ delta = epicsINF; - } else if (signbit(newval) != signbit(*poldval)) { + } else if (isinf(newval) && newval != *poldval) { /* one is +inf, the other -inf -> send update */ delta = epicsINF; }