Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix the build (but not all tests) of MC
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Thu, 16 Feb 2023 08:45:47 +0000 (09:45 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Thu, 16 Feb 2023 08:45:47 +0000 (09:45 +0100)
src/mc/api/ActorState.hpp
src/mc/api/RemoteApp.cpp

index 16232ff..3288ae8 100644 (file)
@@ -88,7 +88,7 @@ public:
   ActorState(aid_t aid, bool enabled, unsigned int max_consider) : ActorState(aid, enabled, max_consider, {}) {}
 
   ActorState(aid_t aid, bool enabled, unsigned int max_consider, std::vector<std::unique_ptr<Transition>> transitions)
-      : aid_(aid), max_consider_(max_consider), enabled_(enabled), pending_transitions_(std::move(transitions))
+      : pending_transitions_(std::move(transitions)), aid_(aid), max_consider_(max_consider), enabled_(enabled)
   {
   }
 
index d2a2b61..0850297 100644 (file)
@@ -201,7 +201,7 @@ void RemoteApp::get_actors_status(std::map<aid_t, ActorState>& whereto) const
   // of 3 transitions, that is ignored here since that invariant needs to be enforced on the AppSide
   const auto expected_transitions = std::accumulate(
       status.begin(), status.end(), 0, [](int total, const auto& actor) { return total + actor.n_transitions; });
-  xbt_assert(expected_transitions == action_pool.size(),
+  xbt_assert(expected_transitions == static_cast<int>(action_pool.size()),
              "Expected to receive %d transition(s) but was only notified of %lu by the app side", expected_transitions,
              action_pool.size());