pike.git / src / mapping.c

version» Context lines:

pike.git/src/mapping.c:547:    * bothering about type checking.    */    for(e=0;e<md->hashsize;e++)    mapping_rehash_backwards_evil(new_md, md->hash[e]);       free((char *)md);    GC_FREE_BLOCK(md);    }      #ifdef PIKE_DEBUG -  if(m->data->size != tmp) -  Pike_fatal("Rehash failed, size not same any more.\n"); +  if((m->data->size != tmp) && +  ((m->data->size > tmp) || !(m->data->flags & MAPPING_WEAK))) +  Pike_fatal("Rehash failed, size not same any more (%ld != %ld).\n", +  (long)m->data->size, (long)tmp);   #endif   #ifdef MAPPING_SIZE_DEBUG    m->debug_size = m->data->size;   #endif      #ifdef PIKE_DEBUG    if(d_flag>1) check_mapping(m);   #endif       return m;