/*
* Sanity check to see if the head contains something
*/
-static _XBT_INLINE void __cursor_not_null(xbt_dict_cursor_t cursor) {
+static XBT_INLINE void __cursor_not_null(xbt_dict_cursor_t cursor) {
xbt_assert0(cursor, "Null cursor");
}
DEBUG1("next element: %p", current);
}
- while (current == NULL && ++line < cursor->dict->table_size) {
+ while (current == NULL && ++line <= cursor->dict->table_size) {
DEBUG0("current is NULL, take the next line");
current = cursor->dict->table[line];
DEBUG1("element in the next line: %p", current);