svn commit: r412889 - head/devel/obby/files

Thomas Zander riggs at FreeBSD.org
Sun Apr 10 06:06:14 UTC 2016


Author: riggs
Date: Sun Apr 10 06:06:13 2016
New Revision: 412889
URL: https://svnweb.freebsd.org/changeset/ports/412889

Log:
  Fix build with libc++ 3.8.0
  
  PR:		208622
  Submitted by:	dim
  MFH:		2016Q2 (build fix blanket)

Added:
  head/devel/obby/files/
  head/devel/obby/files/patch-src__colour.cpp   (contents, props changed)

Added: head/devel/obby/files/patch-src__colour.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/obby/files/patch-src__colour.cpp	Sun Apr 10 06:06:13 2016	(r412889)
@@ -0,0 +1,15 @@
+--- src/colour.cpp.orig	2011-10-30 15:52:53 UTC
++++ src/colour.cpp
+@@ -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>::


More information about the svn-ports-head mailing list