Date: Tue, 3 Jan 2017 13:49:52 +0000 (UTC) From: Matthias Andree <mandree@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r430466 - head/graphics/rawtherapee-devel/files Message-ID: <201701031349.v03DnqkY008554@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mandree Date: Tue Jan 3 13:49:51 2017 New Revision: 430466 URL: https://svnweb.freebsd.org/changeset/ports/430466 Log: Fix compilation on FreeBSD 11+. Added: head/graphics/rawtherapee-devel/files/patch-rtengine_dcraw.cc (contents, props changed) Added: head/graphics/rawtherapee-devel/files/patch-rtengine_dcraw.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/rawtherapee-devel/files/patch-rtengine_dcraw.cc Tue Jan 3 13:49:51 2017 (r430466) @@ -0,0 +1,11 @@ +--- rtengine/dcraw.cc.orig 2016-12-30 15:28:53 UTC ++++ rtengine/dcraw.cc +@@ -2011,7 +2011,7 @@ void CLASS hasselblad_correct() + {bhu-1,0},{bhu-1,bwu/2},{bhu-1,bwu-1}}; + for (col = 0; col < bw; col++) { + for (i = 0; i < 9; i++) { +- ushort dist = (ushort)sqrt(abs(corners[i][0] - row) * abs(corners[i][0] - row) + abs(corners[i][1] - col) * abs(corners[i][1] - col)); ++ ushort dist = (ushort)sqrt(std::fabs(corners[i][0] - row) * std::fabs(corners[i][0] - row) + std::fabs(corners[i][1] - col) * std::fabs(corners[i][1] - col)); + ushort weight = dist > maxdist ? 0 : maxdist - dist; + corners_weight[9*(row*bw+col)+i] = weight; + }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701031349.v03DnqkY008554>