[Bug 208622] devel/obby: Fix build with libc++ 3.8.0
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Apr 7 22:13:22 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208622
Bug ID: 208622
Summary: devel/obby: Fix build with libc++ 3.8.0
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: freebsd-ports-bugs at FreeBSD.org
Reporter: dim at FreeBSD.org
Created attachment 169094
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=169094&action=edit
Fix type for abs() calls in devel/obby
During the exp-run in bug 208158, it was found that devel/obby gives errors
with libc++ 3.8.0 [1]:
colour.cpp:50:9: error: call to 'abs' is ambiguous
return abs(m_red - colour.m_red) +
^~~
This is because abs() is being called with unsigned arguments. Fix this by
casting the arguments to the appropriate signed type.
[1]
http://package18.nyi.freebsd.org/data/headamd64PR208158-default/2016-03-22_18h30m05s/logs/errors/obby-0.4.8_2.log
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list