--- ray/src/common/objset.c 1990/12/14 10:06:33 1.6 +++ ray/src/common/objset.c 1991/11/12 16:54:35 2.1 @@ -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 */ @@ -189,15 +193,16 @@ int orig, nobjs; { int n; register OBJECT *os; - register OBJECT i; + register OBJECT i, s; for (n = 0; n < OSTSIZ; n++) { if ((os = ostable[n]) == NULL) continue; while ((i = *os++) > 0) while (i--) { - if (*os >= orig && *os < orig+nobjs && - !issurface(objptr(*os)->otype)) + s = *os; + if (s >= orig && s < orig+nobjs && + !issurface(objptr(s)->otype)) return(1); os++; }