summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/simutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simutil.c b/src/simutil.c
index 18712460..00701fec 100644
--- a/src/simutil.c
+++ b/src/simutil.c
@@ -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;