Fix pointer size problem with GUINT_TO_POINTER and unsigned short

This commit is contained in:
Marcel Holtmann 2009-10-04 13:02:56 +02:00
parent 9ab5eba1da
commit 647ebdfd13
1 changed files with 1 additions and 1 deletions

View File

@ -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;