Branch: Tag:

2006-07-05

2006-07-05 19:15:35 by Martin Stjernholm <mast@lysator.liu.se>

Avoid warnings about negation of unsigned ints (and also a bit less odd).

Rev: src/pike_macros.h:1.41
Rev: src/pike_search.c:1.27
Rev: src/pike_search_engine.c:1.13

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: pike_search_engine.c,v 1.12 2004/09/18 20:19:41 per Exp $ + || $Id: pike_search_engine.c,v 1.13 2006/07/05 19:15:35 mast Exp $   */      /*
107:    hsize--;       if(max > (ptrdiff_t)needlelen) max=needlelen; -  max=(max-sizeof(INT32)+1) & -sizeof(INT32); +  max=(max-sizeof(INT32)+1) & ~(sizeof(INT32) - 1);    if(max > MEMSEARCH_LINKS) max=MEMSEARCH_LINKS;       /* This assumes 512 buckets - Hubbe */