Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
please sonar a tiny bit
[simgrid.git] / src / xbt / heap.c
index e32dfc4..5bd06f3 100644 (file)
@@ -83,7 +83,8 @@ inline int xbt_heap_size(xbt_heap_t H)
  */
 void xbt_heap_push(xbt_heap_t H, void *content, double key)
 {
-  int count = ++(H->count);
+  H->count += 1;
+  int count = H->count;
 
   int size = H->size;
   xbt_heap_item_t item;