X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8b31411ad567a87b51085f1514b1ecaca54c47b6..954676b700e711f38ec4d286d33d5427d3f4ca46:/src/xbt/dynar.c diff --git a/src/xbt/dynar.c b/src/xbt/dynar.c index fc937cb37b..28c6efcac4 100644 --- a/src/xbt/dynar.c +++ b/src/xbt/dynar.c @@ -1,6 +1,6 @@ /* a generic DYNamic ARray implementation. */ -/* Copyright (c) 2004-2014. The SimGrid Team. +/* Copyright (c) 2004-2015. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -27,7 +27,7 @@ static XBT_INLINE void _sanity_check_idx(int idx) static XBT_INLINE void _check_inbound_idx(xbt_dynar_t dynar, int idx) { - if (idx < 0 || idx >= dynar->used) { + if (idx < 0 || idx >= (int)dynar->used) { THROWF(bound_error, idx, "dynar is not that long. You asked %d, but it's only %lu long", (int) (idx), (unsigned long) dynar->used);