Skip to content
This repository was archived by the owner on Apr 13, 2021. It is now read-only.

Commit 92f8169

Browse files
committed
One instance of 'abs' should be 'fabs'
1 parent 5553330 commit 92f8169

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ephemeris.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ static s8 calc_sat_state_glo(const ephemeris_t *e, const gps_time_t *t,
151151
assert(clock_err != NULL);
152152
assert(clock_rate_err != NULL);
153153

154-
double dt = abs(gpsdifftime(t, &e->toe));
154+
double dt = fabs(gpsdifftime(t, &e->toe));
155155

156156
if (dt > 900) {
157157
log_error("GLO: Integration end point is not within 900 s of TOE");

0 commit comments

Comments
 (0)