From 85e30b4759838041851ec935636ec357d3ea7521 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Sun, 25 Aug 2019 05:00:02 +0200 Subject: [PATCH] Fix conversion --- src/algorithms/libs/rtklib/rtklib_rtkcmn.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/algorithms/libs/rtklib/rtklib_rtkcmn.cc b/src/algorithms/libs/rtklib/rtklib_rtkcmn.cc index f928dd4c1..549e9079b 100644 --- a/src/algorithms/libs/rtklib/rtklib_rtkcmn.cc +++ b/src/algorithms/libs/rtklib/rtklib_rtkcmn.cc @@ -1588,7 +1588,7 @@ void time2epoch(gtime_t t, double *ep) ep[1] = mon % 12 + 1; ep[2] = day + 1; ep[3] = static_cast(sec / 3600); - ep[4] = sec % static_cast(3600 / 60); + ep[4] = static_cast(sec % 3600 / 60); ep[5] = sec % 60 + t.sec; }