]> AND Public Git Repository - simgrid.git/blobdiff - src/xbt/dynar.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Only try to load winpthread on windows
[simgrid.git] / src / xbt / dynar.c
index 25de69ff1b27d440ba30802296f94daeacbce04d..28c6efcac4dc5ab808886dcc03d4e1531017289a 100644 (file)
@@ -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);