FreeBSD Bugzilla – Attachment 169094 Details for
Bug 208622
devel/obby: 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 devel/obby
devel__obby-fix-abs-types-1.diff (text/plain), 1.20 KB, created by
Dimitry Andric
on 2016-04-07 22:13:22 UTC
(
hide
)
Description:
Fix type for abs() calls in devel/obby
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2016-04-07 22:13:22 UTC
Size:
1.20 KB
patch
obsolete
>Index: devel/obby/files/patch-src__colour.cpp >=================================================================== >--- devel/obby/files/patch-src__colour.cpp (nonexistent) >+++ devel/obby/files/patch-src__colour.cpp (working copy) >@@ -0,0 +1,15 @@ >+--- src/colour.cpp.orig 2011-10-30 16:52:53.000000000 +0100 >++++ src/colour.cpp 2016-04-08 00:08:57.551412000 +0200 >+@@ -47,9 +47,9 @@ unsigned int obby::colour::get_blue() co >+ bool obby::colour::similar_colour(const colour& colour) const >+ { >+ // TODO: Convert to HSV for better checking >+- return abs(m_red - colour.m_red) + >+- abs(m_green - colour.m_green) + >+- abs(m_blue - colour.m_blue) < 32; >++ return abs((int)(m_red - colour.m_red)) + >++ abs((int)(m_green - colour.m_green)) + >++ abs((int)(m_blue - colour.m_blue)) < 32; >+ } >+ >+ std::string serialise::default_context_to<obby::colour>:: > >Property changes on: devel/obby/files/patch-src__colour.cpp >___________________________________________________________________ >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 208622
: 169094