X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cdf6a962eb4e88efbed3df9c41343adabcf09e6c..e2ce4181c0c71b95daaf02cb52cb80d9936dff24:/src/mc/mc_hash.cpp diff --git a/src/mc/mc_hash.cpp b/src/mc/mc_hash.cpp index d23fe6915d..3a9118aebb 100644 --- a/src/mc/mc_hash.cpp +++ b/src/mc/mc_hash.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2014-2019. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2014-2022. The SimGrid Team. All rights reserved. */ /* 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. */ @@ -30,17 +30,14 @@ public: { state_ = (state_ << 5) + state_ + x; } - hash_type value() - { - return state_; - } + hash_type value() const { return state_; } }; } hash_type hash(Snapshot const& snapshot) { - XBT_DEBUG("START hash %i", snapshot.num_state_); + XBT_DEBUG("START hash %ld", snapshot.num_state_); djb_hash hash; // TODO: // * nb_processes @@ -48,7 +45,7 @@ hash_type hash(Snapshot const& snapshot) // * root variables // * basic stack frame information // * stack frame local variables - XBT_DEBUG("END hash %i", snapshot.num_state_); + XBT_DEBUG("END hash %ld", snapshot.num_state_); return hash.value(); }