Changeset 38190 in webkit


Ignore:
Timestamp:
Nov 6, 2008 11:30:34 AM (16 years ago)
Author:
Simon Hausmann
Message:

2008-11-06 Laszlo Gombos <Laszlo Gombos>

Reviewed by Darin Adler.

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

Bug uncovered during RVCT port in functions not used. get_lt() and
get_gt() takes only one argument - remove second argument where
applicable.

Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r38187 r38190  
     12008-11-06  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=22107
     6
     7        Bug uncovered during RVCT port in functions not used. get_lt() and
     8        get_gt() takes only one argument - remove second argument where
     9        applicable.
     10
     11        * wtf/AVLTree.h:
     12        (JSC::AVLTree::remove): Remove second argument of get_lt/get_gt().
     13        (JSC::AVLTree::subst): Ditto.
     14
    1152008-11-06  Alp Toker  <alp@nuanti.com>
    216
  • trunk/JavaScriptCore/wtf/AVLTree.h

    r36263 r38190  
    823823
    824824        // Get the handle of the opposite child, which may not be null.
    825         child = cmp > 0 ? get_lt(h, false) : get_gt(h, false);
     825        child = cmp > 0 ? get_lt(h) : get_gt(h);
    826826    }
    827827
     
    842842    if (h != rm) {
    843843        // Poke in the replacement for the node to be removed.
    844         set_lt(h, get_lt(rm, false));
    845         set_gt(h, get_gt(rm, false));
     844        set_lt(h, get_lt(rm));
     845        set_gt(h, get_gt(rm));
    846846        set_bf(h, get_bf(rm));
    847847        if (parent_rm == null())
     
    935935
    936936    /* Copy tree housekeeping fields from node in tree to new node. */
    937     set_lt(new_node, get_lt(h, false));
    938     set_gt(new_node, get_gt(h, false));
     937    set_lt(new_node, get_lt(h));
     938    set_gt(new_node, get_gt(h));
    939939    set_bf(new_node, get_bf(h));
    940940
     
    953953}
    954954
    955 
    956955}
    957956
Note: See TracChangeset for help on using the changeset viewer.