projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d9ff91
)
Minor hashlib bugfix
author
Clifford Wolf
<clifford@clifford.at>
Sat, 16 Apr 2016 21:20:11 +0000
(23:20 +0200)
committer
Clifford Wolf
<clifford@clifford.at>
Sat, 16 Apr 2016 21:20:11 +0000
(23:20 +0200)
kernel/hashlib.h
patch
|
blob
|
history
diff --git
a/kernel/hashlib.h
b/kernel/hashlib.h
index abdeefa13fa9d4966415265e95cf29a683fc6771..2da53dd8ae68e2be3efae06ddb9870508fc839de 100644
(file)
--- 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
;
}
};