[MacPorts] #56114: audacity: issues with C++11 in MemoryX.h
MacPorts
noreply at macports.org
Wed Mar 21 03:29:43 UTC 2018
#56114: audacity: issues with C++11 in MemoryX.h
-----------------------+------------------
Reporter: mojca | Owner: RJVB
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: audacity |
-----------------------+------------------
Comment (by mojca):
Additionally I needed to do
{{{
#!patch
--- a/src/WaveTrack.cpp
+++ b/src/WaveTrack.cpp
@@ -2368,7 +2368,7 @@ void WaveTrack::SplitAt(double t)
newClip->Clear(c->GetStartTime(), t);
//offset the NEW clip by the splitpoint (noting that it is
already offset to c->GetStartTime())
- sampleCount here = llrint(floor(((t - c->GetStartTime()) *
mRate) + 0.5));
+ sampleCount here = llrint((long double)floor(((t -
c->GetStartTime()) * mRate) + 0.5));
newClip->Offset(here.as_double()/(double)mRate);
// This could invalidate the iterators for the loop! But we
return
// at once so it's okay
}}}
due to
{{{
WaveTrack.cpp:2371:29: error: call to 'llrint' is ambiguous
sampleCount here = llrint(floor(((t - c->GetStartTime()) * mRate)
+ 0.5));
^~~~~~
/opt/local/include/gcc/c++/cmath:1530:3: note: candidate function
llrint(float __x)
^
/opt/local/include/gcc/c++/cmath:1534:3: note: candidate function
llrint(long double __x)
^
}}}
--
Ticket URL: <https://trac.macports.org/ticket/56114#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list