pike.git / src / gc.c

version» Context lines:

pike.git/src/gc.c:82:    m->next=chunk;    chunk=m;    markers_left_in_chunk=MARKER_CHUNK_SIZE;    }    markers_left_in_chunk--;       return chunk->markers + markers_left_in_chunk;   }      static struct marker **hash=0; - static int hashsize=0; + static unsigned long hashsize=0;      static struct marker *getmark(void *a)   {    int hashval;    struct marker *m;    -  hashval=((long)a)%hashsize; +  hashval=((unsigned long)a)%hashsize;       for(m=hash[hashval];m;m=m->next)    if(m->marked == a)    return m;       m=new_marker();    m->marked=a;    m->refs=0;   #ifdef DEBUG    m->xrefs=0;