-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCoin3D-fix_hash_function.patch
More file actions
25 lines (22 loc) · 949 Bytes
/
Coin3D-fix_hash_function.patch
File metadata and controls
25 lines (22 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description: Use SbHash-file from the current upstream version
Author: Anton Gladky <gladk@debian.org>
Bug-Debian: https://bugs.debian.org/884947
Last-Update: 2017-12-28
--- coin3-3.1.4~abc9f50+dfsg3.orig/src/misc/SbHash.h
+++ coin3-3.1.4~abc9f50+dfsg3/src/misc/SbHash.h
@@ -144,6 +144,8 @@ class SbHash {
cc_memalloc_deallocate(entry->memhandler, ptr);
}
SbHashEntry(const Key & key, const Type & obj) : key(key), obj(obj) {}
+ SbHashEntry(const Key & key, const Type & obj, cc_memalloc *memhandler)
+ : key(key), obj(obj), memhandler(memhandler) {}
Key key;
Type obj;
@@ -465,7 +467,7 @@ public:
/* Key not already in the hash table; insert a new
* entry as the first element in the bucket
*/
- entry = new (this->memhandler) SbHashEntry(key, obj);
+ entry = new (this->memhandler) SbHashEntry(key, obj, this->memhandler);
entry->next = this->buckets[i];
this->buckets[i] = entry;