Fixed ecore_sheap_change to use the heap compare function.
SVN revision: 11192
This commit is contained in:
parent
af9fa5f640
commit
9906390024
|
@ -215,7 +215,7 @@ int ecore_sheap_change(Ecore_Sheap *heap, void *item, void *newval)
|
|||
|
||||
CHECK_PARAM_POINTER_RETURN("heap", heap, FALSE);
|
||||
|
||||
for (i = 0; i < heap->size && heap->data[i] != item; heap++);
|
||||
for (i = 0; i < heap->size && heap->compare(heap->data[i], item); heap++);
|
||||
|
||||
if (i < heap->size)
|
||||
heap->data[i] = newval;
|
||||
|
|
Loading…
Reference in New Issue