diff --git a/src/openMVG/matching/metric.hpp b/src/openMVG/matching/metric.hpp index 6bac3e6836..4088d6b968 100644 --- a/src/openMVG/matching/metric.hpp +++ b/src/openMVG/matching/metric.hpp @@ -69,7 +69,7 @@ struct L2_Vectorized } }; -#ifdef OPENVMG_USE_SSE +#ifdef OPENMVG_USE_SSE namespace optim_ss2{ @@ -83,7 +83,7 @@ namespace optim_ss2{ }; // Euclidean distance (SSE method) (squared result) - inline float l2_sse(float * b1, float * b2, int size) + inline float l2_sse(const float * b1, const float * b2, int size) { float* b1Pt = (float*)b1; float* b2Pt = (float*)b2; @@ -131,7 +131,7 @@ struct L2_Vectorized } }; -#endif // OPENVMG_USE_SSE +#endif // OPENMVG_USE_SSE } // namespace matching } // namespace openMVG