ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/objset.c
(Generate patch)

Comparing ray/src/common/objset.c (file contents):
Revision 2.9 by greg, Tue Feb 25 02:47:21 2003 UTC vs.
Revision 2.11 by greg, Thu May 15 05:13:35 2003 UTC

# Line 16 | Line 16 | static const char      RCSid[] = "$Id$";
16   #include  "object.h"
17  
18   #ifndef  OSTSIZ
19 < #ifdef  BIGMEM
20 < #define  OSTSIZ         262139          /* object table size (a prime!) */
21 < #else
19 > #ifdef  SMLMEM
20   #define  OSTSIZ         32749           /* object table size (a prime!) */
21 + #else
22 + #define  OSTSIZ         262139          /* object table size (a prime!) */
23   #endif
24   #endif
25  
# Line 217 | Line 217 | tryagain:
217                                                  /* remember position */
218                  i = os - ostable[osentry];
219                  os = ostable[osentry] = (OBJECT *)realloc(
220 <                                (char *)ostable[osentry],
220 >                                (void *)ostable[osentry],
221                                  (unsigned)(i+oset[0]+2)*sizeof(OBJECT));
222                  if (os == NULL)
223                          goto memerr;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines