Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Don't depend on <stdbool.h>.
[simgrid.git] / src / xbt / dict_cursor.c
index 9959a34..f6b6a3d 100644 (file)
@@ -128,17 +128,17 @@ inline int xbt_dict_cursor_get_or_free(xbt_dict_cursor_t * cursor, char **key, v
   XBT_CDEBUG(xbt_dict_cursor, "xbt_dict_get_or_free");
 
   if (!cursor || !(*cursor))
-    return false;
+    return 0;
 
   current = (*cursor)->current;
   if (current == NULL) {        /* no data left */
     xbt_dict_cursor_free(cursor);
-    return false;
+    return 0;
   }
 
   *key = current->key;
   *data = current->content;
-  return true;
+  return 1;
 }
 
 /**