FreeBSD Bugzilla – Attachment 169728 Details for
Bug 209077
net/opal: Fix build with libc++ 3.8.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix type for abs() calls in net/opal
net__opal-fix-abs-1.diff (text/plain), 1.23 KB, created by
Dimitry Andric
on 2016-04-26 18:56:35 UTC
(
hide
)
Description:
Fix type for abs() calls in net/opal
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2016-04-26 18:56:35 UTC
Size:
1.23 KB
patch
obsolete
>Index: net/opal/files/patch-plugins_video_common_mpi.cxx >=================================================================== >--- net/opal/files/patch-plugins_video_common_mpi.cxx (nonexistent) >+++ net/opal/files/patch-plugins_video_common_mpi.cxx (working copy) >@@ -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; > >Property changes on: net/opal/files/patch-plugins_video_common_mpi.cxx >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 209077
: 169728