Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Proper fix for compilation warning
[simgrid.git] / src / surf / surf_routing_cluster_fat_tree.hpp
index 46eb9a0..7aaf9b1 100644 (file)
@@ -53,7 +53,7 @@ public:
   ~AsClusterFatTree();
   virtual void getRouteAndLatency(RoutingEdgePtr src, RoutingEdgePtr dst,
                                   sg_platf_route_cbarg_t into,
-                                  double *latency) const;
+                                  double *latency);
   // virtual void getRouteAndLatency(const int src, const int dst,
   //                                 std::vector<NetworkLink> *route,
   //                                 double *latency) const;
@@ -64,16 +64,16 @@ public:
 
 protected:
   //description of a PGFT (TODO : better doc)
-  int levels;
+  unsigned int levels;
   std::vector<int> lowerLevelNodesNumber;
   std::vector<int> upperLevelNodesNumber;
   std::vector<int> lowerLevelPortsNumber;
   
   std::vector<FatTreeNode*> nodes;
   std::map<std::pair<int,int>, FatTreeLink*> links;
-  std::vector<int> nodesByLevel;
+  std::vector<unsigned int> nodesByLevel;
 
   void addLink(FatTreeNode *parent, FatTreeNode *child);
-  void getLevelPosition(const int level, int &position, int &size);
+  void getLevelPosition(const unsigned int level, int &position, int &size);
 };
 #endif