--- ray/src/common/lookup.c 1994/07/06 15:14:15 2.1 +++ ray/src/common/lookup.c 1995/04/11 13:33:37 2.2 @@ -48,7 +48,7 @@ register char *s; register long h = 0; while (*s) - h ^= (long)(*s++ & 0xff) << (i++ & 15); + h ^= (long)(*s++ & 0xff) << (i++ & 0xf); return(h); } @@ -79,7 +79,7 @@ tryagain: oldtabl = tbl->tabl; ndx = tbl->tsiz; i = tbl->ndel; - if (!lu_init(tbl, ndx-i)) { /* no more memory! */ + if (!lu_init(tbl, ndx-i+1)) { /* no more memory! */ tbl->tabl = oldtabl; tbl->tsiz = ndx; tbl->ndel = i;