From 6b2e8ab641522c61fa520ca47b3008dc65a8aabb Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 28 Mar 2015 06:32:37 -0400 Subject: splint cleanup. Fixes for minor but real issues... ...no attempt to address the weird cross-platfprm variability we've seen lately. All regression tests pass. --- drivers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers.c') diff --git a/drivers.c b/drivers.c index 69959a6e..b2190d67 100644 --- a/drivers.c +++ b/drivers.c @@ -1115,7 +1115,7 @@ static bool mtk3301_rate_switcher(struct gps_device_t *session, double rate) { char buf[78]; - unsigned int milliseconds = 1000 * rate; + unsigned int milliseconds = (unsigned int)(1000 * rate); if (rate > 1) milliseconds = 1000; else if (rate < 0.2) -- cgit v1.2.1