aboutsummaryrefslogtreecommitdiff
path: root/net/opal
diff options
context:
space:
mode:
authorDon Lewis <truckman@FreeBSD.org>2016-06-06 23:55:08 +0000
committerDon Lewis <truckman@FreeBSD.org>2016-06-06 23:55:08 +0000
commitb049eba9056ea27d5e37d37399e4831f6350985e (patch)
treebf2474eac7ed9e4372bce8cf4a5d194febf3795b /net/opal
parent0f7a6cc3eb646220aa88aea2863d0359202e3307 (diff)
downloadports-b049eba9056ea27d5e37d37399e4831f6350985e.tar.gz
ports-b049eba9056ea27d5e37d37399e4831f6350985e.zip
Notes
Diffstat (limited to 'net/opal')
-rw-r--r--net/opal/files/patch-plugins_video_common_mpi.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/net/opal/files/patch-plugins_video_common_mpi.cxx b/net/opal/files/patch-plugins_video_common_mpi.cxx
new file mode 100644
index 000000000000..1ff8ec4ac24a
--- /dev/null
+++ b/net/opal/files/patch-plugins_video_common_mpi.cxx
@@ -0,0 +1,13 @@
+--- plugins/video/common/mpi.cxx.orig 2013-02-20 02:18:05 UTC
++++ plugins/video/common/mpi.cxx
+@@ -132,8 +132,8 @@ bool MPIList::getNegotiatedMPI( unsigned
+ // to the desired one or matches it
+ for (i=0; i < MPIs.size(); i++) {
+ // we square the value in order to get absolute distances
+- distance = ( abs(MPIs[i].width - desiredWidth ) *
+- abs(MPIs[i].height - desiredHeight) );
++ distance = ( abs((int)(MPIs[i].width - desiredWidth )) *
++ abs((int)(MPIs[i].height - desiredHeight)) );
+
+ if (distance < minDistance) {
+ minDistance = distance;