From 5cd202ddb563b52044a27a9c46adaafacd6e872f Mon Sep 17 00:00:00 2001 From: heckflosse Date: Tue, 24 May 2016 23:46:43 +0200 Subject: [PATCH] Fix build on Arch 32bit non SSE using gcc-6.6.1, fixes #3305, kudos to mbajor for reporting and to Floessie for providing a fix for the bug --- rtexif/rtexif.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtexif/rtexif.h b/rtexif/rtexif.h index 2d6c800fc..471f9fbe3 100644 --- a/rtexif/rtexif.h +++ b/rtexif/rtexif.h @@ -558,7 +558,7 @@ protected: lensAperture = exp( log(a1) + (log(a2) - log(a1)) / (log(f2) - log(f1)) * (log(focalLength) - log(f1)) ); } - dif = abs(lensAperture - maxApertureAtFocal); + dif = std::abs(lensAperture - maxApertureAtFocal); } else { dif = 0; }