summaryrefslogtreecommitdiff
path: root/driver_sirf.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-03-08 08:22:00 -0400
committerEric S. Raymond <esr@thyrsus.com>2015-03-08 08:22:00 -0400
commite79b15c162bebb04bbeb50ab786a22f2fb84c735 (patch)
tree813a414793f39a7a2359c9cddc59d3f8b9536b56 /driver_sirf.c
parentffa6d0965c626b0fa8e3b9eeaaeff9a5f3ac5bfa (diff)
downloadgpsd-e79b15c162bebb04bbeb50ab786a22f2fb84c735.tar.gz
A step toards float elimination. No code changes.
Diffstat (limited to 'driver_sirf.c')
-rw-r--r--driver_sirf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/driver_sirf.c b/driver_sirf.c
index b2cf575d..0d0b81f5 100644
--- a/driver_sirf.c
+++ b/driver_sirf.c
@@ -574,7 +574,7 @@ static gps_mask_t sirf_msg_svinfo(struct gps_device_t *session,
if (len != 188)
return 0;
- session->gpsdata.skyview_time = gpsd_gpstime_resolve(session,
+ session->gpsdata.skyview_time = (timestamp_t)gpsd_gpstime_resolve(session,
(unsigned short)getbes16(buf, 1),
(unsigned int)getbeu32(buf, 3) * 1e-2);
@@ -740,7 +740,7 @@ static gps_mask_t sirf_msg_navsol(struct gps_device_t *session,
navtype, session->gpsdata.status, session->newdata.mode);
/* byte 20 is HDOP, see below */
/* byte 21 is "mode 2", not clear how to interpret that */
- session->newdata.time = gpsd_gpstime_resolve(session,
+ session->newdata.time = (timestamp_t)gpsd_gpstime_resolve(session,
(unsigned short)getbes16(buf, 22), (double)getbeu32(buf, 24) * 1e-2);
#ifdef TIMEHINT_ENABLE
if (session->newdata.mode <= MODE_NO_FIX) {