SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
14
lang/freehdl/patches/patch-freehdl_kernel-list_hh
Normal file
14
lang/freehdl/patches/patch-freehdl_kernel-list_hh
Normal file
|
@ -0,0 +1,14 @@
|
|||
improve the hash function.
|
||||
|
||||
Index: freehdl/kernel-list.hh
|
||||
--- freehdl/kernel-list.hh.orig
|
||||
+++ freehdl/kernel-list.hh
|
||||
@@ -634,7 +634,7 @@ get_hash(const shared_array<T> &a) {
|
||||
unsigned int num = 0;
|
||||
const int UINT_BIT = sizeof(unsigned int) * CHAR_BIT;
|
||||
for (int i = 0; i < a.size(); i++)
|
||||
- num = ((num << 2) || ((UINT_BIT - 2) >> 30)) + get_hash(a.content(i));
|
||||
+ num = ((num << 2) | ((UINT_BIT - 2) >> 30)) + get_hash(a.content(i));
|
||||
return num;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue