mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 10:08:06 +02:00
[hashtable] Add some intptr_t casts
This is to fix some compiler warnings.
This commit is contained in:
parent
63f116f523
commit
16a0aa3286
1 changed files with 2 additions and 2 deletions
|
|
@ -53,14 +53,14 @@ struct _ply_hashtable
|
|||
unsigned int
|
||||
ply_hashtable_direct_hash (void *element)
|
||||
{
|
||||
return (unsigned int) element;
|
||||
return (unsigned int) (intptr_t) element;
|
||||
}
|
||||
|
||||
int
|
||||
ply_hashtable_direct_compare (void *elementa,
|
||||
void *elementb)
|
||||
{
|
||||
return (unsigned int) elementa - (unsigned int) elementb;
|
||||
return (int) ((intptr_t) elementa - (intptr_t) elementb);
|
||||
}
|
||||
|
||||
unsigned int
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue