Skip to content

Commit

Permalink
Issue #4 some compilers complain without braces
Browse files Browse the repository at this point in the history
  • Loading branch information
aholinch authored Mar 22, 2023
1 parent 59d658d commit 0ab55f9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/c/SGP4.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,16 @@
if ((rec->nodep < 0.0) && (opsmode == 'a'))
rec->nodep = rec->nodep + twopi;
if (fabs(xnoh - rec->nodep) > pi)
{
if (rec->nodep < xnoh)
{
rec->nodep = rec->nodep + twopi;
}
else
{
rec->nodep = rec->nodep - twopi;
}
}
rec->mp = rec->mp + pl;
rec->argpp = xls - rec->mp - cosip * rec->nodep;
}
Expand Down

0 comments on commit 0ab55f9

Please sign in to comment.