Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 Apr 2016 19:50:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 208490] audio/taglookup: Fix build with libc++ 3.8.0
Message-ID:  <bug-208490-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208490

            Bug ID: 208490
           Summary: audio/taglookup: 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@FreeBSD.org
          Reporter: dim@FreeBSD.org
                CC: alex@kamaz.org.uk
                CC: alex@kamaz.org.uk
             Flags: maintainer-feedback?(alex@kamaz.org.uk)

Created attachment 168940
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D168940&action=
=3Dedit
Fix type for abs() calls in audio/taglookup

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

tag.cpp:170:17: error: call to 'abs' is ambiguous
            if( abs(f1.second - x_) <
                ^~~

This is because f1.second and x_ are unsigned values, and it is therefore
ambiguous to which type the expression should be casted before calling abs(=
).=20
A similar ambiguity exists in the next line.  Fix these by explicity casting
the expression result to a signed type before calling abs().

[1]
http://package18.nyi.freebsd.org/data/headamd64PR208158-default/2016-03-22_=
18h30m05s/logs/errors/taglookup-0.2_3.log

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



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