kosma / minmea

a lightweight GPS NMEA 0183 parser library in pure C
Do What The F*ck You Want To Public License
755 stars 246 forks source link

use explicit 32bit integer for fractional time calculation #23

Closed kaspar030 closed 7 years ago

kaspar030 commented 7 years ago

Otherwise, the build fails on non-32bit platforms:

minmea.c: In function 'minmea_scan':
minmea.c:304:37: error: overflow in implicit constant conversion [-Werror=overflow]
                         int scale = 1000000;

The tests still pass after this change on 64bit Linux.