Fix compile with gcc 5.4.0.

This commit is contained in:
Christian Speckner 2017-07-06 00:00:05 +02:00
parent 6d4a98d735
commit 2111340785
2 changed files with 4 additions and 3 deletions

View File

@ -20,6 +20,10 @@
#include "NTSCFilter.hxx"
constexpr double scaleFrom100(double x) { return (x/50.0) - 1.0; }
constexpr uInt32 scaleTo100(double x) { return uInt32(50*(x+1.0)); }
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NTSCFilter::NTSCFilter()
: mySetup(AtariNTSC::TV_Composite),

View File

@ -116,9 +116,6 @@ class NTSCFilter
void convertToAdjustable(Adjustable& adjustable,
const AtariNTSC::Setup& setup) const;
constexpr double scaleFrom100(double x) const { return (x/50.0) - 1.0; }
constexpr uInt32 scaleTo100(double x) const { return uInt32(50*(x+1.0)); }
private:
// The NTSC object
AtariNTSC myNTSC;