Ticket #8969: ps2-hashmap-new.patch
File ps2-hashmap-new.patch, 630 bytes (added by , 16 years ago) |
---|
-
common/hashmap.h
old new 262 262 * Base constructor, creates an empty hashmap. 263 263 */ 264 264 template<class Key, class Val, class HashFunc, class EqualFunc> 265 HashMap<Key, Val, HashFunc, EqualFunc>::HashMap() : 266 _defaultVal() { 265 HashMap<Key, Val, HashFunc, EqualFunc>::HashMap() 266 // 267 // We have to skip _defaultVal() on PS2 to avoid gcc 3.2.2 ICE 268 // 269 #ifdef __PLAYSTATION2__ 270 { 271 #else 272 : _defaultVal() { 273 #endif 267 274 _mask = HASHMAP_MIN_CAPACITY - 1; 268 275 _storage = new Node *[HASHMAP_MIN_CAPACITY]; 269 276 assert(_storage != NULL);