pud: nmealib: fix a Coverity warning
authorFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 25 Feb 2015 20:16:26 +0000 (21:16 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 25 Feb 2015 20:47:56 +0000 (21:47 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/pud/nmealib/src/generator.c

index ddff086..c9c5aac 100644 (file)
@@ -317,7 +317,7 @@ static int nmea_igen_static_init(nmeaGENERATOR *gen, nmeaINFO *info) {
 static int nmea_igen_rotate_loop(nmeaGENERATOR *gen __attribute__ ((unused)), nmeaINFO *info) {
        int it;
        int count = info->satinfo.inview;
-       double deg = 360 / (count ? count : 1);
+       double deg = 360.0 / (count ? count : 1);
        double srt = (count ? (info->satinfo.sat[0].azimuth) : 0) + 5;
 
        nmea_time_now(&info->utc, &info->present);