3 Implicit conversion warnings in NormalisableRange


#1

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’


#2

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


#3

I’m not using it. apple LLVM7


#4

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

Ed


#5

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