Changeset 38259 in webkit for trunk/JavaScriptCore/wtf/AVLTree.h
- Timestamp:
- Nov 10, 2008, 7:03:44 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/AVLTree.h
r38190 r38259 30 30 */ 31 31 32 #ifndef KJS_AVL_TREE_H_33 #define KJS_AVL_TREE_H_32 #ifndef AVL_TREE_H_ 33 #define AVL_TREE_H_ 34 34 35 35 #include "Assertions.h" 36 36 37 namespace JSC{37 namespace WTF { 38 38 39 39 // Here is the reference class for BSet. … … 204 204 } 205 205 cmp = -target_cmp; 206 } else if (target_cmp != 0) 207 if (!((cmp ^ target_cmp) & MASK_HIGH_BIT)) 206 } else if (target_cmp != 0) { 207 if (!((cmp ^ target_cmp) & MASK_HIGH_BIT)) { 208 208 // cmp and target_cmp are both negative or both positive. 209 209 depth = d; 210 h = cmp < 0 ? get_lt(h) : get_gt(h); 211 if (h == null()) 212 break; 213 branch[d] = cmp > 0; 214 path_h[d++] = h; 210 } 211 } 212 h = cmp < 0 ? get_lt(h) : get_gt(h); 213 if (h == null()) 214 break; 215 branch[d] = cmp > 0; 216 path_h[d++] = h; 215 217 } 216 218 }
Note:
See TracChangeset
for help on using the changeset viewer.