From: Arnaud Giersch Date: Fri, 12 Apr 2019 09:13:51 +0000 (+0200) Subject: Fix hash update. X-Git-Tag: v3.22.2~143^2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/815f4c169d003b97c4244afa64da03f937fed670?hp=-c Fix hash update. --- 815f4c169d003b97c4244afa64da03f937fed670 diff --git a/src/mc/mc_hash.cpp b/src/mc/mc_hash.cpp index 626927fe96..71f8fe80ad 100644 --- a/src/mc/mc_hash.cpp +++ b/src/mc/mc_hash.cpp @@ -29,7 +29,7 @@ public: template void update(T& x) { - state_ = (state_ << 5) + state_ + state_; + state_ = (state_ << 5) + state_ + x; } hash_type value() {