[Bug 208757] games/edge: Fix build with libc++ 3.8.0

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Apr 12 20:12:10 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208757

            Bug ID: 208757
           Summary: games/edge: 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 169260
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=169260&action=edit
Replace abs() on unsigned arguments in games/edge

During the exp-run in bug 208158, it was found that games/edge gives errors
with libc++ 3.8.0 [1]:

epi/image_hq2x.cc:178:13: error: call to 'abs' is ambiguous
                   (u32_t)abs((YUV1 & Ymask) - (YUV2 & Ymask)) > trY ||
                          ^~~

This is because abs() is being called with unsigned arguments.  Fix this by
calculating the unsigned difference in a more portable way.

[1]
http://package18.nyi.freebsd.org/data/headamd64PR208158-default/2016-03-22_18h30m05s/logs/errors/edge-1.35_6.log

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list