-/* Copyright (c) 2008-2019. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2008-2020. The SimGrid Team. All rights reserved. */
/* 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. */
static void dump_hosts()
{
- unsigned int totalHosts = sg_host_count();
+ unsigned int totalHosts = static_cast<unsigned int>(sg_host_count());
sg_host_t* hosts = sg_host_list();
std::sort(hosts, hosts + totalHosts,
[](const_sg_host_t a, const_sg_host_t b) { return strcmp(sg_host_get_name(a), sg_host_get_name(b)) < 0; });
static void dump_routes()
{
- unsigned int totalHosts = sg_host_count();
+ unsigned int totalHosts = static_cast<unsigned int>(sg_host_count());
sg_host_t* hosts = sg_host_list();
std::sort(hosts, hosts + totalHosts,
[](const_sg_host_t a, const_sg_host_t b) { return strcmp(sg_host_get_name(a), sg_host_get_name(b)) < 0; });