From b7db5552281151cc623f5e03f3c4f3687025ec38 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 20 Apr 2010 13:36:14 -0400 Subject: Splint and cppcheck cleanup. All regression tests pass. --- driver_ubx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'driver_ubx.c') 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) -- cgit v1.2.1