fix math ambiguity & OSX compilation
authorRobin Gareus <robin@gareus.org>
Thu, 13 Oct 2016 21:41:49 +0000 (23:41 +0200)
committerRobin Gareus <robin@gareus.org>
Thu, 13 Oct 2016 21:41:49 +0000 (23:41 +0200)
commit88dedfcbdbf99ed3b4c87dc47b2e2a5167881882
tree5b58ae443f79ded4fee0a582914dbf5fe1cd5931
parent8f9a9523d2161ee15975f5f9136ef80d4bfbf3e2
fix math ambiguity & OSX compilation

cc121.cc: In member function 'void ArdourSurface::CC121::encoder_handler(MIDI::Parser&, MIDI::EventTwoBytes*)':
cc121.cc:413: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
/usr/include/architecture/i386/math.h:343: note: candidate 1: double pow(double, double)
/usr/include/c++/4.2.1/cmath:357: note: candidate 2: float std::pow(float, float)
libs/surfaces/cc121/cc121.cc