jpcima / ensemble-chorus

Digital model of electronic string ensemble chorus
Boost Software License 1.0
33 stars 2 forks source link

error: cast from 'const void*' to 'juce::pointer_sized_uint' {aka 'unsigned int'} loses precision #13

Open yurivict opened 4 years ago

yurivict commented 4 years ago

Both clang-9 and gcc-9 fail with a similar message:

static int juce::DefaultHashFunctions::generateHash(const void*, int)':
work/ensemble-chorus-59baeb86b8851f521bc8162e22e3f15061662cc3/thirdparty/JUCE/modules/juce_core/containers/juce_HashMap.h|49 col 130| error: cast from 'const void*' to 'juce::pointer_sized_uint' {aka 'unsigned int'} loses precision [-fpermissive]                                                                                                                                      
||    49 |     static int generateHash (const void* key, int upperLimit) noexcept      { return generateHash ((uint64) (pointer_sized_uint) key, upperLimit); }
||       |                                                                                                                                  ^~~