Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Apr 2016 06:06:13 +0000 (UTC)
From:      Thomas Zander <riggs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r412889 - head/devel/obby/files
Message-ID:  <201604100606.u3A66D09075252@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>::



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604100606.u3A66D09075252>