mikalhart / TinyGPS

A compact Arduino NMEA (GPS) parsing library
http://arduiniana.org
384 stars 255 forks source link

parse_decimal mixes signed/unsigned... #12

Open nickds1 opened 7 years ago

nickds1 commented 7 years ago

The parse_decimal method is defined "unsigned long" yet it parses and attempts to return a signed number.

This means that it will not handle negative numbers correctly and return erroneous results.