summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-01-30 11:21:30 +0100
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-02-16 17:22:22 +0100
commitaa16dd1b3a50aa402003bc80fa0145d1a845c2cb (patch)
tree4f2022b6db6cdc1e48cbc28929697043c68fd4a7 /src
parentcda5119e8692dd65ff0980f4e5eb91a2c0c0b756 (diff)
downloadjustbuild-aa16dd1b3a50aa402003bc80fa0145d1a845c2cb.tar.gz
ArtifactDigest: Hashing the object should not take size into account
As it is common to use ArtifactDigest objects with a default value of 0, the std::hash implementation should not take the size into account. The is_tree member however should be kept in as it always needs to have a value and has no sensible default.
Diffstat (limited to 'src')
-rw-r--r--src/buildtool/common/artifact_digest.hpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/buildtool/common/artifact_digest.hpp b/src/buildtool/common/artifact_digest.hpp
index 5b4589cd..1e0405dd 100644
--- a/src/buildtool/common/artifact_digest.hpp
+++ b/src/buildtool/common/artifact_digest.hpp
@@ -111,7 +111,6 @@ struct hash<ArtifactDigest> {
-> std::size_t {
std::size_t seed{};
hash_combine(&seed, digest.hash_);
- hash_combine(&seed, digest.size_);
hash_combine(&seed, digest.is_tree_);
return seed;
}