diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-01-27T16·46+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-01-27T16·46+0100 |
commit | 7899fc959d0d35ee5718fd206d86f8464dd551eb (patch) | |
tree | fa063449265ae8a1678fb5cb05e82cf6764fcf25 /src | |
parent | 739bab0be75c427bd366d4caf04f5e9352fb065c (diff) |
Define HashType's size to allow it to be forward-declared
Diffstat (limited to 'src')
-rw-r--r-- | src/libutil/hash.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/hash.hh b/src/libutil/hash.hh index 8bd7e9f17f4f..bac2ebf2dcfa 100644 --- a/src/libutil/hash.hh +++ b/src/libutil/hash.hh @@ -7,7 +7,7 @@ namespace nix { -typedef enum { htUnknown, htMD5, htSHA1, htSHA256, htSHA512 } HashType; +enum HashType : char { htUnknown, htMD5, htSHA1, htSHA256, htSHA512 }; const int md5HashSize = 16; |