PennMUSH Community

Changeset 1210

Show
Ignore:
Timestamp:
01/27/08 08:34:16 (8 months ago)
Author:
shawnw
Message:

#7541: intmap bug fix

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 1.8.3/branches/devel/src/intmap.c

    r1208 r1210  
    217217  } 
    218218 
     219  /* Not a duplicate, so key and here->key /will/ differ in at least one 
     220     bit. No need to make sure that bit doesn't go > 31 */ 
    219221  for (bit = 0; digit(key, bit) == digit(here->key, bit); bit++) ; 
    220222 
     
    224226    newnode->links[digit(im->root->key, bit)] = im->root; 
    225227    im->root = newnode; 
     228    im->count += 1; 
     229    assert(im->count > 1); 
    226230    return true; 
    227231  }