projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ab5eba
)
Fix pointer size problem with GUINT_TO_POINTER and unsigned short
author
Marcel Holtmann
<marcel@holtmann.org>
Sun, 4 Oct 2009 11:02:56 +0000
(13:02 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Sun, 4 Oct 2009 11:02:56 +0000
(13:02 +0200)
src/simutil.c
patch
|
blob
|
history
diff --git
a/src/simutil.c
b/src/simutil.c
index
1871246
..
00701fe
100644
(file)
--- 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;