X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/98f4691dd28ce69c830d6976ff36d8b2616620ec..9e208fa1fce2449fb9d83259d4d4cb2fe9f6cdfb:/src/xbt/config.c diff --git a/src/xbt/config.c b/src/xbt/config.c index def06a9978..a640310dfa 100644 --- a/src/xbt/config.c +++ b/src/xbt/config.c @@ -9,6 +9,7 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ +#include #include "xbt/misc.h" #include "xbt/sysdep.h" #include "xbt/log.h" @@ -662,7 +663,7 @@ xbt_cfg_set_int(xbt_cfg_t cfg,const char*name, int val) { xbt_dynar_set(variable->content,0,&val); } else { - if (variable->max && xbt_dynar_length(variable->content) == variable->max) + if (variable->max && xbt_dynar_length(variable->content) == (unsigned long)variable->max) THROW3(mismatch_error,0, "Cannot add value %d to the config element %s since it's already full (size=%d)", val,name,variable->max);