[Webkit-unassigned] [Bug 27060] Type cast for first argument in make_pair()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 14 04:43:39 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=27060





--- Comment #6 from Janne Koskinen <koshuin at gmail.com>  2009-08-14 04:43:38 PDT ---
Getting there..

It is not the make_pair function that fails, but the HashMap::Contains().

in WTF/StructureTransitionTable.h we define our HashTable to be type:
    typedef HashMap<StructureTransitionTableHash::Key, Structure*,
StructureTransitionTableHash, StructureTransitionTableHashTraits>
StructureTransitionTable;

where the StructureTransitionTableHashTraits' SecondFirstTraits::TraitType is
unsigned.

Looks like temporary pair is getting generated with unknown type. From illegal
operand we can gather that this is not integer type.I looked at HashTraits.h to
see if there was an obvious reason, but cold code reading doesn't help at this
point. Unfortunately I don't have src for std so my debugging/preprocessing is
limited here.

Again casting to unsigned is the easiest way to fix this.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list