From 513cab610322755a45143eac42eb53ceb08fca2d Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Mon, 26 Nov 2018 23:21:56 +0000 Subject: gpsrines: Another take at 32/64-bit compatibility --- gpsrinex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gpsrinex.c b/gpsrinex.c index 6de3f68f..8bb40e9d 100644 --- a/gpsrinex.c +++ b/gpsrinex.c @@ -752,8 +752,9 @@ static void quit_handler(int signum) static void conditionally_log_fix(struct gps_data_t *gpsdata) { if ( 4 < debug) { + /* The (long long unsigned) is for 32/64-bit compatibility */ (void)fprintf(tmp_file,"mode %d set %llx\n", gpsdata->fix.mode, - gpsdata->set); + (long long unsigned)gpsdata->set); } /* mostly we don't care if 2D or 3D fix, let the post processor -- cgit v1.2.1