Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
modelc-checker : reset list of blocks/fragments pairs associated
[simgrid.git] / src / xbt / heap_private.h
index c0330c7..40a17af 100644 (file)
@@ -9,6 +9,7 @@
 
 #include "xbt/dynar.h"          /* void_f_pvoid_t */
 #include "xbt/heap.h"
+#include <float.h>
 
 typedef struct xbt_heap_item {
   void *content;
@@ -18,7 +19,7 @@ typedef struct xbt_heap_item {
 typedef struct xbt_heap {
   int size;
   int count;
-  xbt_heap_item_t items;
+  s_xbt_heap_item_t* items; /* array of structs */
   void_f_pvoid_t free;
   void (*update_callback) (void *, int);
 } s_xbt_heap_t;
@@ -30,6 +31,6 @@ typedef struct xbt_heap {
 #define KEY(H,i)     ((H->items)[i]).key
 #define CONTENT(H,i) ((H->items)[i]).content
 
-#define MIN_KEY_VALUE -10000
+#define MIN_KEY_VALUE -DBL_MAX
 
 #endif                          /* _XBT_HEAP_PRIVATE_H */