ioc/db (recGblCheckDeadband): avoid signbit() which does not exist on older MSVC installations

This commit is contained in:
Ralph Lange
2014-08-05 11:20:23 +02:00
parent 130d98463c
commit fdb21252b0

View File

@@ -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;
}