Skip to content

Commit

Permalink
Accidental C11 style declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
attipaci committed Jan 9, 2025
1 parent d3a7461 commit dde9060
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/novas.c
Original file line number Diff line number Diff line change
Expand Up @@ -5867,6 +5867,7 @@ short ephemeris(const double *jd_tdb, const object *body, enum novas_origin orig
*/
static int change_pole(const double *in, double theta, double phi, double *out) {
double x, y, z;
double ca, sa, cb, sb;

x = in[0];
y = in[1];
Expand All @@ -5875,10 +5876,10 @@ static int change_pole(const double *in, double theta, double phi, double *out)
theta *= DEGREE;
phi *= DEGREE;

double ca = cos(phi);
double sa = sin(phi);
double cb = cos(theta);
double sb = sin(theta);
ca = cos(phi);
sa = sin(phi);
cb = cos(theta);
sb = sin(theta);

out[0] = ca * x - sa * cb * y + sa * sb * z;
out[1] = sa * x + ca * cb * y - ca * sb * z;
Expand Down

0 comments on commit dde9060

Please sign in to comment.