1 --- opal-3.10.11/plugins/video/common/mpi.cxx.orig 2017-07-12 19:15:10.396689138 +0000
2 +++ opal-3.10.11/plugins/video/common/mpi.cxx 2017-07-12 19:18:02.036496397 +0000
4 // to the desired one or matches it
5 for (i=0; i < MPIs.size(); i++) {
6 // we square the value in order to get absolute distances
7 - distance = ( abs(MPIs[i].width - desiredWidth ) *
8 - abs(MPIs[i].height - desiredHeight) );
9 + distance = ( abs((int)(MPIs[i].width - desiredWidth) ) *
10 + abs((int)(MPIs[i].height - desiredHeight) ) );
12 if (distance < minDistance) {
13 minDistance = distance;