svn commit: r430466 - head/graphics/rawtherapee-devel/files
Matthias Andree
mandree at FreeBSD.org
Tue Jan 3 13:49:53 UTC 2017
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;
+ }
More information about the svn-ports-all
mailing list