Skip to content

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

@yurivict

Description

@yurivict

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); }
||       |                                                                                                                                  ^~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions