From 2e3744342d98b5a271bfcd92a804a8f0de73816a Mon Sep 17 00:00:00 2001 From: Cyrille Valladeau <cyrille.valladeau@c-s.fr> Date: Thu, 3 Sep 2009 09:07:13 +0200 Subject: [PATCH] WRG : potential divide by 0 --- Code/BasicFilters/otbEuclideanDistanceWithMissingValuePow2.txx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/BasicFilters/otbEuclideanDistanceWithMissingValuePow2.txx b/Code/BasicFilters/otbEuclideanDistanceWithMissingValuePow2.txx index c62008a027..16a57e8384 100644 --- a/Code/BasicFilters/otbEuclideanDistanceWithMissingValuePow2.txx +++ b/Code/BasicFilters/otbEuclideanDistanceWithMissingValuePow2.txx @@ -108,7 +108,7 @@ void EuclideanDistanceWithMissingValuePow2< TVector > ::SetToMissingValue ( ValueType & v ) { - double zero = 0.0; + static double zero; v = static_cast<ValueType>( 0.0/zero ); } -- GitLab