OCaml 4.14.0 rebuild
[arch-packages.git] / opal / trunk / opal-gcc7.patch
blob96047edb652aaf9b649e30cefe84681e28283b29
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
3 @@ -132,8 +132,8 @@
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;