Changeset 544


Ignore:
Timestamp:
02/08/09 20:02:49 (3 years ago)
Author:
mooneer
Message:

Fixed problems with array class and kdoc.

Location:
interpreter/trunk/modules/System
Files:
3 edited

Legend:

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

    r537 r544  
    143143            ], 
    144144            (k < this.key and this.left is System.null) [ 
    145                 (make System.collections._TreeNode(k, null, this)); 
     145                (make System.collections._TreeNode(k, null, this)).item; 
    146146            ], 
    147147            (k > this.key and this.right is System.null) [ 
    148                 (make System.collections._TreeNode(k, null, this)); 
     148                (make System.collections._TreeNode(k, null, this)).item; 
    149149            ], 
    150150            (k < this.key) [ this.left|get(k); ], 
  • interpreter/trunk/modules/System/collections/array.c

    r530 r544  
    193193  KITE_NO_ARGS; 
    194194 
    195   for(idx=0;idx < array_struct->size;idx++) { 
     195  for(idx=0;array_struct && idx < array_struct->size;idx++) { 
    196196      stringrep = kite_string_object(thd, array_struct->array[idx]); 
    197197      ret = realloc(ret, strlen(ret) +  
  • interpreter/trunk/modules/System/doc.kt

    r343 r544  
    5757    ) /[Add node to current node's list of children.]/ 
    5858    [ 
    59         this.children|append(child); 
     59        this.children << child; 
    6060    ] 
    6161]; 
Note: See TracChangeset for help on using the changeset viewer.