Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
This change allow to avoid the Visual C++ compiler Warning that occur when you try...
[simgrid.git] / src / xbt / set.c
index 6578127..609ecd6 100644 (file)
@@ -78,7 +78,7 @@ static int _xbt_set_get_id(xbt_set_t set) {
  */
 void xbt_set_add    (xbt_set_t      set,
                      xbt_set_elm_t  elm,
-                     void_f_pvoid_t *free_func) {
+                     void_f_pvoid_t free_func) {
 
   int found = 1;
   xbt_set_elm_t found_in_dict = NULL;
@@ -265,7 +265,7 @@ void         xbt_set_cursor_step        (xbt_set_cursor_t cursor) {
   do {
     cursor->val++;
   }
-  while (cursor->val < xbt_dynar_length(dynar) &&
+  while (cursor->val < (int)xbt_dynar_length(dynar) &&
         xbt_dynar_get_ptr(dynar, cursor->val) == NULL);
 }
 
@@ -282,7 +282,7 @@ int          xbt_set_cursor_get_or_free (xbt_set_cursor_t *curs,
 
   cursor=*curs;
 
-  if (cursor->val >= xbt_dynar_length(cursor->set->dynar)) {
+  if (cursor->val >= (int)xbt_dynar_length(cursor->set->dynar)) {
     free(cursor);
     *curs=NULL;
     return FALSE;