X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0f5e8daaa6e9f74521068aa75837200bcd182ea6..64561039d3dec9e50b4eaf1b78b3edef71898383:/src/xbt/xbt_queue.c diff --git a/src/xbt/xbt_queue.c b/src/xbt/xbt_queue.c index b3829bd59f..679160c5c9 100644 --- a/src/xbt/xbt_queue.c +++ b/src/xbt/xbt_queue.c @@ -33,7 +33,8 @@ typedef struct s_xbt_queue_ { xbt_queue_t xbt_queue_new(int capacity, unsigned long elm_size) { xbt_queue_t res = xbt_new0(s_xbt_queue_t, 1); - xbt_assert0(capacity >= 0, "Capacity cannot be negative"); + if (capacity<0) + capacity=0; res->capacity = capacity; res->data = xbt_dynar_new(elm_size, NULL);