--- ray/src/common/objset.c 1991/05/10 10:37:14 1.7 +++ ray/src/common/objset.c 1992/07/13 14:23:21 2.3 @@ -19,8 +19,12 @@ static char SCCSid[] = "$SunId$ LBL"; #include "otypes.h" #ifndef OSTSIZ +#ifdef BIGMEM +#define OSTSIZ 56437 /* object table size (a prime!) */ +#else #define OSTSIZ 12329 /* object table size (a prime!) */ #endif +#endif static OBJECT *ostable[OSTSIZ]; /* the object set table */ @@ -195,13 +199,11 @@ int orig, nobjs; if ((os = ostable[n]) == NULL) continue; while ((i = *os++) > 0) - while (i--) { - s = *os; - if (s >= orig && s < orig+nobjs && - !issurface(objptr(s)->otype)) + do + if ((s = *os++) >= orig && s < orig+nobjs && + ismodifier(objptr(s)->otype)) return(1); - os++; - } + while (--i); } return(0); }