From 2f0036c9187178a78308f1e06626d196c888778f Mon Sep 17 00:00:00 2001 From: Tony0 Date: Fri, 15 Sep 2017 22:45:17 +0300 Subject: [PATCH] remove assignments in expressions --- modules/calib3d/src/fisheye.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/calib3d/src/fisheye.cpp b/modules/calib3d/src/fisheye.cpp index 3b33a6faa1..13b998a689 100644 --- a/modules/calib3d/src/fisheye.cpp +++ b/modules/calib3d/src/fisheye.cpp @@ -478,8 +478,8 @@ void cv::fisheye::initUndistortRectifyMap( InputArray K, InputArray D, InputArra double u, v; if( _w <= 0) { - _x > 0 ? u = -std::numeric_limits::infinity() : u = std::numeric_limits::infinity(); - _y > 0 ? v = -std::numeric_limits::infinity() : v = std::numeric_limits::infinity(); + u = (_x > 0) ? -std::numeric_limits::infinity() : std::numeric_limits::infinity(); + v = (_y > 0) ? -std::numeric_limits::infinity() : std::numeric_limits::infinity(); } else {