summaryrefslogtreecommitdiff
path: root/nmea_parse.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-06-15 13:19:23 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-06-15 13:19:23 +0000
commit004619b26fc0a6617279d02ef53d10b7e26053d4 (patch)
tree928298cdfb51a1c6ec001097a8108c0aac0de1ab /nmea_parse.c
parentaa63d4702526eb16b635ef291660d65b77e7fc38 (diff)
downloadgpsd-004619b26fc0a6617279d02ef53d10b7e26053d4.tar.gz
splint cleanup after NAN change.
Diffstat (limited to 'nmea_parse.c')
-rw-r--r--nmea_parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nmea_parse.c b/nmea_parse.c
index 8310b2dc..651a788f 100644
--- a/nmea_parse.c
+++ b/nmea_parse.c
@@ -270,7 +270,7 @@ static gps_mask_t processGPGGA(int c UNUSED, char *field[], struct gps_data_t *o
* SiRF and Garmin chips, which might have some smoothing
* going on.
*/
- if (!isnan(oldaltitude) || out->fix.time==oldfixtime)
+ if (isnan(oldaltitude)==0 || out->fix.time==oldfixtime)
out->fix.climb = 0;
else {
out->fix.climb = (out->fix.altitude-oldaltitude)/(out->fix.time-oldfixtime);