diff options
author | Clifford Wolf <clifford@clifford.at> | 2016-04-16 23:20:11 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2016-04-16 23:20:11 +0200 |
commit | a07f893a5fd018e426e1aa6de7ad986ea8acd468 (patch) | |
tree | 25edeae0613e3d522ed194ce3f514992baed5a18 /kernel | |
parent | 3d9ff912c208d330fea12c0149fbe352e9ea7c0a (diff) | |
download | yosys-a07f893a5fd018e426e1aa6de7ad986ea8acd468.tar.gz yosys-a07f893a5fd018e426e1aa6de7ad986ea8acd468.tar.bz2 yosys-a07f893a5fd018e426e1aa6de7ad986ea8acd468.zip |
Minor hashlib bugfix
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/hashlib.h | 2 |
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; } }; |