X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/815eff8a1dbe6a86a229bc66f3a6e2fea0253d6c..40151dc650bf350da4d9b73d3b66d1a078a0dc8c:/testsuite/xbt/graphxml_usage.c diff --git a/testsuite/xbt/graphxml_usage.c b/testsuite/xbt/graphxml_usage.c index e6450c04df..3930ca7050 100644 --- a/testsuite/xbt/graphxml_usage.c +++ b/testsuite/xbt/graphxml_usage.c @@ -11,6 +11,11 @@ #endif #include + +#ifdef _MSC_VER +#define snprintf _snprintf +#endif + #include "xbt/module.h" #include "xbt/sysdep.h" #include "xbt/graph.h" @@ -44,7 +49,7 @@ void test(char *graph_file) int test_shortest_paths = 1; int test_topo_sort = 1; - int i, j; + unsigned long i, j; unsigned long n; xbt_dynar_t edges = NULL; @@ -110,7 +115,7 @@ void test(char *graph_file) sorted = xbt_graph_topo_sort(graph); for (i = 0; i < n; i++) { if (sorted[i]) { - INFO3("sorted[%d] = %s (%p)", i, node_name(sorted[i]), sorted[i]); + INFO3("sorted[%lu] = %s (%p)", i, node_name(sorted[i]), sorted[i]); } } free(sorted);