summaryrefslogtreecommitdiff
path: root/src/bin/evas/evas_cserve2_shm_debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/evas/evas_cserve2_shm_debug.c')
-rw-r--r--src/bin/evas/evas_cserve2_shm_debug.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bin/evas/evas_cserve2_shm_debug.c b/src/bin/evas/evas_cserve2_shm_debug.c
index e17e5d2b40..bde62bd89b 100644
--- a/src/bin/evas/evas_cserve2_shm_debug.c
+++ b/src/bin/evas/evas_cserve2_shm_debug.c
@@ -286,6 +286,14 @@ _shared_index_item_get_by_id(Shm_File *si, int elemsize, unsigned int id)
286 286
287 base = si->data + sizeof(Shared_Array_Header); 287 base = si->data + sizeof(Shared_Array_Header);
288 288
289 // Direct access, works for non-repacked arrays
290 if ((int) id < high)
291 {
292 obj = (Shm_Object *) (base + (elemsize * id));
293 if (obj->id == id)
294 return obj;
295 }
296
289 // Binary search 297 // Binary search
290 start_high = high; 298 start_high = high;
291 while(high != low) 299 while(high != low)