mirror of git://git.sysmocom.de/ofono
Fix pointer size problem with GUINT_TO_POINTER and unsigned short
This commit is contained in:
parent
9ab5eba1da
commit
647ebdfd13
|
@ -568,7 +568,7 @@ struct sim_ef_info *sim_ef_db_lookup(unsigned short id)
|
|||
struct sim_ef_info *result;
|
||||
unsigned int nelem = sizeof(ef_db) / sizeof(struct sim_ef_info);
|
||||
|
||||
result = bsearch(GUINT_TO_POINTER(id), ef_db, nelem,
|
||||
result = bsearch(GUINT_TO_POINTER((unsigned int) id), ef_db, nelem,
|
||||
sizeof(struct sim_ef_info), find_ef_by_id);
|
||||
|
||||
return result;
|
||||
|
|
Loading…
Reference in New Issue