AP_Math: const correctness

This commit is contained in:
Pierre Kancir
2018-12-22 08:39:06 +09:00
committed by Randy Mackay
parent f1aa4f3f87
commit f1270b4b22
7 changed files with 114 additions and 114 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ void splinterp5(const float x[5], float out[4][4])
} else if (p > -0.01f && p < 0.0f) {
p = -0.01f;
}
float p_inv = 1.0f / p;
const float p_inv = 1.0f / p;
z[i] = -0.5f * p_inv;
u[i] = x[i+1] + x[i-1] - 2.0f * x[i];
u[i] = (3.0f * u[i] - 0.5f * u[i-1]) * p_inv;