3 Implicit conversion warnings in NormalisableRange

there are 3 small warnings in NormalisableRange (it’s just about using std::exp and std::pow and std::log in there) :

juce_NormalisableRange.h:120:17: Implicit conversion loses floating-point precision: ‘double’ to ‘float’
/juce_NormalisableRange.h:131:30: Implicit conversion loses floating-point precision: ‘double’ to 'float’
juce_NormalisableRange.h:140:40: Implicit conversion loses floating-point precision: ‘double’ to ‘float’

I’ve pushed a few changes to the NormalisableRange class on the develop branch - it now uses the standard library math functions and should hopefully get rid of those errors. Which type are you trying to use and what compiler?

Ed

I’m not using it. apple LLVM7

OK, are you still getting the warnings using the latest commit on the develop branch?

Ed

yes, no more warnings, it’s all good with the standard library functions. thanks!

1 Like