diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-04-20 13:36:14 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-04-20 13:36:14 -0400 |
commit | b7db5552281151cc623f5e03f3c4f3687025ec38 (patch) | |
tree | 461979495e2a3eb536ddf0c12a7b84ec96ce1bf2 /driver_ubx.c | |
parent | d3551eec32b6a4858d00582f61b00803ef340b00 (diff) | |
download | gpsd-b7db5552281151cc623f5e03f3c4f3687025ec38.tar.gz |
Splint and cppcheck cleanup. All regression tests pass.
Diffstat (limited to 'driver_ubx.c')
-rw-r--r-- | driver_ubx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver_ubx.c b/driver_ubx.c index 127f410f..6038b558 100644 --- a/driver_ubx.c +++ b/driver_ubx.c @@ -175,7 +175,7 @@ ubx_msg_nav_timegps(struct gps_device_t *session, unsigned char *buf, tow = (unsigned int)getleul(buf, 0); gw = (unsigned int)getlesw(buf, 8); if (gw > session->context->gps_week) - session->context->gps_week = gw; + session->context->gps_week = (unsigned short)gw; flags = (unsigned int)getub(buf, 11); if ((flags & 0x7) != 0) |