Skip to content

Consider adding more HASH_FIND_XX for standard INT/UINT types #229

@depler

Description

@depler

I was breaking my head why this code not working as expected:

uint16_t uid = 0;
HASH_FIND_INT(head, &uid , item);

Until I did this:

#define HASH_FIND_UINT16(head,findint,out) HASH_FIND(hh,head,findint,sizeof(uint16_t),out)
#define HASH_ADD_UINT16(head,intfield,add) HASH_ADD(hh,head,intfield,sizeof(uint16_t),add)

Please append additional macros for standard INT/UINT types

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