pike.git / src / pike_search_engine.c

version» Context lines:

pike.git/src/pike_search_engine.c:102:    s->set[e]=0;    linklen[e]=0;    }    hsize--;       if(max > (ptrdiff_t)needlelen) max=needlelen;    max=(max-sizeof(INT32)+1) & ~(sizeof(INT32) - 1);    if(max > MEMSEARCH_LINKS) max=MEMSEARCH_LINKS;       /* This assumes 512 buckets - Hubbe */ -  maxlinklength = my_sqrt(DO_NOT_WARN((unsigned int)max/2))+1; +  maxlinklength = (INT32)sqrt((double)max/2)+1;       ptr=& s->links[0];       q=(NCHAR *)needle;      #if PIKE_BYTEORDER == 4321 && NSHIFT == 0    for(tmp = e = 0; e < (ptrdiff_t)sizeof(INT32)-1; e++)    {    tmp<<=8;    tmp|=*(q++);