--- ray/src/common/objset.c 1997/03/07 15:45:28 2.4 +++ ray/src/common/objset.c 1998/08/18 17:18:51 2.6 @@ -18,9 +18,9 @@ static char SCCSid[] = "$SunId$ LBL"; #ifndef OSTSIZ #ifdef BIGMEM -#define OSTSIZ 56437 /* object table size (a prime!) */ +#define OSTSIZ 262139 /* object table size (a prime!) */ #else -#define OSTSIZ 12329 /* object table size (a prime!) */ +#define OSTSIZ 32749 /* object table size (a prime!) */ #endif #endif @@ -228,10 +228,10 @@ OCTREE ot; if (!isfull(ot)) goto noderr; - i = oseti(ot); - if ((os = ostable[i%OSTSIZ]) == NULL) + ot = oseti(ot); + if ((os = ostable[ot%OSTSIZ]) == NULL) goto noderr; - for (i /= OSTSIZ; i--; os += *os + 1) + for (i = ot/OSTSIZ; i--; os += *os + 1) if (*os <= 0) goto noderr; for (i = *os; i-- >= 0; ) /* copy set here */