aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/hash.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-06-25 15:50:30 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-06-25 15:50:30 +0200
commitde2641ae99965ecf88e6f72e3969c0c7b7e7020a (patch)
treedc5114198685b489771108e02c89597e83b51745 /src/libutil/hash.hh
parent3c50e84387e51858f10c540e721a938592f30949 (diff)
Fix empty std::optional dereference in writeDerivation()
https://hydra.nixos.org/build/123017579
Diffstat (limited to 'src/libutil/hash.hh')
-rw-r--r--src/libutil/hash.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/hash.hh b/src/libutil/hash.hh
index 0d9916508..23259dced 100644
--- a/src/libutil/hash.hh
+++ b/src/libutil/hash.hh
@@ -10,7 +10,7 @@ namespace nix {
MakeError(BadHash, Error);
-enum HashType : char { htMD5, htSHA1, htSHA256, htSHA512 };
+enum HashType : char { htMD5 = 42, htSHA1, htSHA256, htSHA512 };
const int md5HashSize = 16;