summaryrefslogtreecommitdiff
path: root/gpsdclient.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-07-14 12:46:05 -0700
committerGary E. Miller <gem@rellim.com>2018-07-14 12:46:05 -0700
commit424385fcf7fea280ebd948b372c88ea87e33fd53 (patch)
treec414b8a9f754fa8f34ce7714f026e0ccb527d771 /gpsdclient.c
parent1744cd9f87006c85492edf1f476e054bdb744ea1 (diff)
downloadgpsd-424385fcf7fea280ebd948b372c88ea87e33fd53.tar.gz
gpsdclient.c: isnan() -> isfinite()
Thanks to Virgin Orbit for their support on this patch.
Diffstat (limited to 'gpsdclient.c')
-rw-r--r--gpsdclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsdclient.c b/gpsdclient.c
index bdae15c9..24f4cb53 100644
--- a/gpsdclient.c
+++ b/gpsdclient.c
@@ -320,7 +320,7 @@ float true2magnetic(double lat, double lon, double heading)
}
/* No negative headings. */
- if (isnan(heading)== 0 && heading < 0.0)
+ if (isfinite(heading) != 0 && heading < 0.0)
heading += 360.0;
return (heading);