From 7899fc959d0d35ee5718fd206d86f8464dd551eb Mon Sep 17 00:00:00 2001
From: Eelco Dolstra <eelco.dolstra@logicblox.com>
Date: Wed, 27 Jan 2016 17:46:01 +0100
Subject: [PATCH] Define HashType's size to allow it to be forward-declared

---
 src/libutil/hash.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libutil/hash.hh b/src/libutil/hash.hh
index 8bd7e9f17..bac2ebf2d 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;
-- 
GitLab