summaryrefslogtreecommitdiff
path: root/driver_ubx.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_ubx.c
parentffa6d0965c626b0fa8e3b9eeaaeff9a5f3ac5bfa (diff)
downloadgpsd-e79b15c162bebb04bbeb50ab786a22f2fb84c735.tar.gz
A step toards float elimination. No code changes.
Diffstat (limited to 'driver_ubx.c')
-rw-r--r--driver_ubx.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/driver_ubx.c b/driver_ubx.c
index 350f4990..932d5d64 100644
--- a/driver_ubx.c
+++ b/driver_ubx.c
@@ -94,7 +94,8 @@ ubx_msg_nav_sol(struct gps_device_t *session, unsigned char *buf,
unsigned int tow;
tow = (unsigned int)getleu32(buf, 0);
gw = (unsigned short)getles16(buf, 8);
- session->newdata.time = gpsd_gpstime_resolve(session, gw, tow / 1000.0);
+ session->newdata.time = (timestamp_t)gpsd_gpstime_resolve(session,
+ gw, tow / 1000.0);
mask |= TIME_SET | PPSTIME_IS;
}
@@ -223,7 +224,7 @@ ubx_msg_nav_timegps(struct gps_device_t *session, unsigned char *buf,
flags = (unsigned int)getub(buf, 11);
if ((flags & 0x7) != 0)
session->context->leap_seconds = (int)getub(buf, 10);
- session->newdata.time = gpsd_gpstime_resolve(session,
+ session->newdata.time = (timestamp_t)gpsd_gpstime_resolve(session,
(unsigned short int)gw,
(double)tow / 1000.0);