aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2016-04-16 23:20:11 +0200
committerClifford Wolf <clifford@clifford.at>2016-04-16 23:20:11 +0200
commita07f893a5fd018e426e1aa6de7ad986ea8acd468 (patch)
tree25edeae0613e3d522ed194ce3f514992baed5a18 /kernel
parent3d9ff912c208d330fea12c0149fbe352e9ea7c0a (diff)
downloadyosys-a07f893a5fd018e426e1aa6de7ad986ea8acd468.tar.gz
yosys-a07f893a5fd018e426e1aa6de7ad986ea8acd468.tar.bz2
yosys-a07f893a5fd018e426e1aa6de7ad986ea8acd468.zip
Minor hashlib bugfix
Diffstat (limited to 'kernel')
-rw-r--r--kernel/hashlib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/hashlib.h b/kernel/hashlib.h
index abdeefa13..2da53dd8a 100644
--- a/kernel/hashlib.h
+++ b/kernel/hashlib.h
@@ -156,7 +156,7 @@ struct hash_obj_ops {
}
template<typename T>
static inline unsigned int hash(const T *a) {
- return a->hash();
+ return a ? a->hash() : 0;
}
};