diff --git a/include/ceres/rotation.h b/include/ceres/rotation.h index ab1e69e6a..0fa96b277 100644 --- a/include/ceres/rotation.h +++ b/include/ceres/rotation.h @@ -578,7 +578,7 @@ void RotationMatrixToEulerAngles( } else { ea[0] = atan2(-R(j, k), R(j, j)); ea[1] = atan2(sy, R(i, i)); - ea[2] = 0; + ea[2] = 0.0; } } else { const T cy = hypot(R(i, i), R(j, i)); @@ -589,7 +589,7 @@ void RotationMatrixToEulerAngles( } else { ea[0] = atan2(-R(j, k), R(j, j)); ea[1] = atan2(-R(k, i), cy); - ea[2] = 0; + ea[2] = 0.0; } } if constexpr (EulerSystem::kIsParityOdd) {