Ignore:
Timestamp:
Apr 27, 2008, 11:57:31 PM (17 years ago)
Author:
[email protected]
Message:

2008-04-27 Mark Rowe <[email protected]>

Reviewed by Maciej Stachowiak.

Fix crash inside PtrHash::hash when loading a page.

  • wtf/HashFunctions.h: Explicitly use the superclass implementation of hash to avoid infinite recursion.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/HashFunctions.h

    r32609 r32611  
    118118    };
    119119    template<typename P> struct PtrHash<RefPtr<P> > : PtrHash<P*> {
    120         static unsigned hash(const RefPtr<P>& key) { return hash(key.get()); }
     120        static unsigned hash(const RefPtr<P>& key) { return PtrHash<P*>::hash(key.get()); }
    121121        static bool equal(const RefPtr<P>& a, const RefPtr<P>& b) { return a == b; }
    122122        static bool equal(P* a, const RefPtr<P>& b) { return a == b; }
Note: See TracChangeset for help on using the changeset viewer.