aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/hash.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-07-21 18:39:32 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-07-21 18:39:32 +0200
commitd3cd0f585619d35f5daad3441258edd15ebc3f64 (patch)
treea78097ef735e36e58518a4e4f146b455c6e28fc7 /src/libutil/hash.cc
parente19c90fc6b319cb3bb6fbb9a88524dcc7bcbd0aa (diff)
Fix assertion failure
Diffstat (limited to 'src/libutil/hash.cc')
-rw-r--r--src/libutil/hash.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/hash.cc b/src/libutil/hash.cc
index 5352483ff..81aced0fd 100644
--- a/src/libutil/hash.cc
+++ b/src/libutil/hash.cc
@@ -121,7 +121,7 @@ const string base32Chars = "0123456789abcdfghijklmnpqrsvwxyz";
string printHash32(const Hash & hash)
{
- assert(hash.type != htUnknown);
+ assert(hash.hashSize);
size_t len = hash.base32Len();
assert(len);