Changeset 537


Ignore:
Timestamp:
02/06/09 10:56:02 (3 years ago)
Author:
mooneer
Message:

Fixed op[]= bug in System.collections.binary_tree.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • interpreter/trunk/modules/System/collections.kt

    r378 r537  
    143143            ], 
    144144            (k < this.key and this.left is System.null) [ 
    145                 null; 
     145                (make System.collections._TreeNode(k, null, this)); 
    146146            ], 
    147147            (k > this.key and this.right is System.null) [ 
    148                 null; 
     148                (make System.collections._TreeNode(k, null, this)); 
    149149            ], 
    150150            (k < this.key) [ this.left|get(k); ], 
     
    214214    [ 
    215215        decide [ 
    216             (this.root_node is System.null) [ null; ], 
     216            (this.root_node is System.null) [  
     217                this.root_node = make System.collections._TreeNode(key, null, null); 
     218                this.root_node.item; 
     219            ], 
    217220            (true) [ this.root_node|get(key); ] 
    218221        ]; 
Note: See TracChangeset for help on using the changeset viewer.