summaryrefslogtreecommitdiff
path: root/drivers.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-03-28 06:32:37 -0400
committerEric S. Raymond <esr@thyrsus.com>2015-03-28 06:32:37 -0400
commit6b2e8ab641522c61fa520ca47b3008dc65a8aabb (patch)
treec3c5c40a50cc39c0744cde2a8c84a0cf0190ad58 /drivers.c
parent5e24bd130a5456d2f5b3b1c6bb2d7222b9613180 (diff)
downloadgpsd-6b2e8ab641522c61fa520ca47b3008dc65a8aabb.tar.gz
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.
Diffstat (limited to 'drivers.c')
-rw-r--r--drivers.c2
1 files changed, 1 insertions, 1 deletions
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)