summaryrefslogtreecommitdiff
path: root/driver_tsip.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver_tsip.c')
-rw-r--r--driver_tsip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver_tsip.c b/driver_tsip.c
index 73d1e66a..540e73af 100644
--- a/driver_tsip.c
+++ b/driver_tsip.c
@@ -840,7 +840,7 @@ static gps_mask_t tsip_parse_input(struct gps_device_t *session)
s1 = (int16_t)getbeu16(buf, 5); /* week */
s2 = getbes16(buf, 7); /* leap seconds */
- if ((int)u1 > 10) {
+ if ((int)ul1 > 10) {
session->context->leap_seconds = (int)s2;
session->context->valid |= LEAP_SECOND_VALID;
session->newdata.time =