Ticket #8969: ps2-hashmap-new.patch

File ps2-hashmap-new.patch, 630 bytes (added by sunmax, 15 years ago)
  • common/hashmap.h

    old new  
    262262 * Base constructor, creates an empty hashmap.
    263263 */
    264264template<class Key, class Val, class HashFunc, class EqualFunc>
    265 HashMap<Key, Val, HashFunc, EqualFunc>::HashMap() :
    266         _defaultVal() {
     265HashMap<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
    267274        _mask = HASHMAP_MIN_CAPACITY - 1;
    268275        _storage = new Node *[HASHMAP_MIN_CAPACITY];
    269276        assert(_storage != NULL);