summaryrefslogtreecommitdiff
path: root/gpsrinex.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-11-26 15:12:46 -0800
committerGary E. Miller <gem@rellim.com>2018-11-26 15:12:46 -0800
commit983165935171abbe422860e62351fda9699086e6 (patch)
tree8557ffaa6f086b147ff8fbef512aa45fda76d57f /gpsrinex.c
parenteb86dab91af39340c086da4ff76ad129819aff48 (diff)
downloadgpsd-983165935171abbe422860e62351fda9699086e6.tar.gz
gpsrinex: Fix a signed/unsigned complaint on 32-bit.
Diffstat (limited to 'gpsrinex.c')
-rw-r--r--gpsrinex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gpsrinex.c b/gpsrinex.c
index 8955a056..6de3f68f 100644
--- a/gpsrinex.c
+++ b/gpsrinex.c
@@ -570,7 +570,8 @@ static void print_raw(struct gps_data_t *gpsdata)
int nsat = 0;
int i;
- if ((last_mtime.tv_sec + sample_interval) > gpsdata->raw.mtime.tv_sec) {
+ if ((last_mtime.tv_sec + (time_t)sample_interval) >
+ gpsdata->raw.mtime.tv_sec) {
/* not time yet */
return;
}