From: Arnaud Giersch Date: Wed, 2 Dec 2020 10:56:53 +0000 (+0100) Subject: Fix type for parameter 'issuer'. X-Git-Tag: v3.26~26 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/3693b5b63b04a3bedf77bb0c550f28ee917ee6e7 Fix type for parameter 'issuer'. --- diff --git a/src/mc/checker/CommunicationDeterminismChecker.cpp b/src/mc/checker/CommunicationDeterminismChecker.cpp index ac2f3f48b8..0a7a4a2974 100644 --- a/src/mc/checker/CommunicationDeterminismChecker.cpp +++ b/src/mc/checker/CommunicationDeterminismChecker.cpp @@ -234,8 +234,8 @@ void CommunicationDeterminismChecker::get_comm_pattern(smx_simcall_t request, Ca incomplete_communications_pattern[issuer->get_pid()].push_back(pattern.release()); } -void CommunicationDeterminismChecker::complete_comm_pattern(const kernel::activity::CommImpl* comm_addr, - unsigned int issuer, int backtracking) +void CommunicationDeterminismChecker::complete_comm_pattern(const kernel::activity::CommImpl* comm_addr, aid_t issuer, + int backtracking) { /* Complete comm pattern */ std::vector& incomplete_pattern = incomplete_communications_pattern[issuer]; @@ -247,7 +247,7 @@ void CommunicationDeterminismChecker::complete_comm_pattern(const kernel::activi update_comm_pattern(*current_comm_pattern, comm_addr); std::unique_ptr comm_pattern(*current_comm_pattern); - XBT_DEBUG("Remove incomplete comm pattern for process %u at cursor %zd", issuer, + XBT_DEBUG("Remove incomplete comm pattern for process %ld at cursor %zd", issuer, std::distance(begin(incomplete_pattern), current_comm_pattern)); incomplete_pattern.erase(current_comm_pattern); diff --git a/src/mc/checker/CommunicationDeterminismChecker.hpp b/src/mc/checker/CommunicationDeterminismChecker.hpp index 291afb5baf..a1937411b2 100644 --- a/src/mc/checker/CommunicationDeterminismChecker.hpp +++ b/src/mc/checker/CommunicationDeterminismChecker.hpp @@ -35,7 +35,7 @@ private: public: // These are used by functions which should be moved in CommunicationDeterminismChecker: void get_comm_pattern(smx_simcall_t request, CallType call_type, int backtracking); - void complete_comm_pattern(const kernel::activity::CommImpl* comm_addr, unsigned int issuer, int backtracking); + void complete_comm_pattern(const kernel::activity::CommImpl* comm_addr, aid_t issuer, int backtracking); private: /** Stack representing the position in the exploration graph */