Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Apr 2016 16:42:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 208842] games/kuklomenos: Fix build with libc++ 3.8.0
Message-ID:  <bug-208842-13-SJUzv4L7ul@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-208842-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-208842-13@https.bugs.freebsd.org/bugzilla/>

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

Dimitry Andric <dim@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #169379|0                           |1
        is obsolete|                            |

--- Comment #2 from Dimitry Andric <dim@FreeBSD.org> ---
Created attachment 169442
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D169442&action=
=3Dedit
Fix argument type for max() in games/kuklomenos

Right, I didn't realize that for earlier versions of libc++, the fabs()
prototype is such that it always returns double.  In that case, the std::max
invocation will still be with differently typed arguments, causing complain=
ts.

I now replaced the fabs() call with fabsf(), so now both arguments to std::=
max
are *really* floats.

--=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-208842-13-SJUzv4L7ul>