Skip to content

Commit e1b565b

Browse files
committed
Silence abs warning using fabs.
1 parent cf611fe commit e1b565b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libs/librockflight/eom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ int eom(int neq, double time, double *y, double *dy, void *data)
100100

101101
/* euler angle equation */
102102
/* we have to check for division by zero */
103-
if (abs(cos(theta)) > 0.001)
103+
if (fabs(cos(theta)) > 0.001)
104104
{
105105
dy[9] = s->P + sin(phi)*tan(theta)*s->Q + cos(phi)*tan(theta)*s->R;
106106
dy[10] = cos(phi) *s->Q - sin(phi) *s->R;

0 commit comments

Comments
 (0)