Fixed ecore_sheap_change to use the heap compare function.

SVN revision: 11192
This commit is contained in:
werkt 2004-08-10 00:30:49 +00:00 committed by werkt
parent af9fa5f640
commit 9906390024
1 changed files with 1 additions and 1 deletions

View File

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