X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5785f3d0627bb6f96d99ac5f5591f7cf4ed7f009..38fa7b2d3e69aa9aa4957b2b847bec34bc1096ac:/src/kernel/routing/AsFloyd.cpp diff --git a/src/kernel/routing/AsFloyd.cpp b/src/kernel/routing/AsFloyd.cpp index 07d2c6c0df..f92328ca0b 100644 --- a/src/kernel/routing/AsFloyd.cpp +++ b/src/kernel/routing/AsFloyd.cpp @@ -3,6 +3,8 @@ /* 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/log.h" #include "src/kernel/routing/AsFloyd.hpp" #include "src/surf/network_interface.hpp" @@ -26,9 +28,9 @@ AsFloyd::AsFloyd(const char*name) } AsFloyd::~AsFloyd(){ - int table_size = static_cast(vertices_.size()); if (linkTable_ == nullptr) // Dealing with a parse error in the file? return; + int table_size = vertices_.size(); /* Delete link_table */ for (int i = 0; i < table_size; i++) for (int j = 0; j < table_size; j++)