From: Clifford Wolf Date: Sat, 16 Apr 2016 21:20:11 +0000 (+0200) Subject: Minor hashlib bugfix X-Git-Tag: yosys-0.7~262 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a07f893a5fd018e426e1aa6de7ad986ea8acd468;p=yosys.git Minor hashlib bugfix --- 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 static inline unsigned int hash(const T *a) { - return a->hash(); + return a ? a->hash() : 0; } };