Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yurivict opened this issue Apr 20, 2020 · 0 comments

Comments

@yurivict
Copy link

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); }
||       |                                                                                                                                  ^~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant