Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix assert: min and max are both included in interval for MC_random.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 10 Mar 2023 16:08:07 +0000 (17:08 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 10 Mar 2023 21:45:25 +0000 (22:45 +0100)
[ci-skip]

src/kernel/actor/SimcallObserver.hpp

index a9dc9bf..4cb7f22 100644 (file)
@@ -85,7 +85,7 @@ class RandomSimcall final : public SimcallObserver {
 public:
   RandomSimcall(ActorImpl* actor, int min, int max) : SimcallObserver(actor), min_(min), max_(max)
   {
-    xbt_assert(min < max);
+    xbt_assert(min <= max);
   }
   void serialize(std::stringstream& stream) const override;
   std::string to_string() const override;