Ticket #1347: addrregistry_1.pmc.patch

File addrregistry_1.pmc.patch, 0.7 KB (added by jimmy, 12 years ago)
  • src/pmc/addrregistry.pmc

     
    4040*/ 
    4141 
    4242    VTABLE void init() { 
    43         Hash  *registry = parrot_create_hash(INTERP, 
     43        Hash  *hash = parrot_create_hash(INTERP, 
    4444                enum_type_int, 
    4545                Hash_key_type_PMC, 
    4646                int_compare, 
    4747                key_hash_int); 
    4848 
    49         Parrot_AddrRegistry_attributes *attrs = 
    50             (Parrot_AddrRegistry_attributes *) PMC_data(SELF); 
    51  
    52         SELF.set_pointer(registry); 
     49        SET_ATTR_hash(INTERP, SELF, hash); 
    5350        PObj_custom_mark_destroy_SETALL(SELF); 
    5451 
    5552    }