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

Comparing ray/src/hd/rholo3.c (file contents):
Revision 3.34 by greg, Sat Feb 22 02:07:25 2003 UTC vs.
Revision 3.35 by greg, Wed Apr 23 00:52:33 2003 UTC

# Line 88 | Line 88 | register HDBEAMI       *hb;
88          if (b->nrm > n) {               /* (re)allocate packet holder */
89                  n = b->nrm;
90                  if (p == NULL) p = (PACKHEAD *)malloc(packsiz(n));
91 <                else p = (PACKHEAD *)realloc((char *)p, packsiz(n));
91 >                else p = (PACKHEAD *)realloc((void *)p, packsiz(n));
92                  CHECK(p==NULL, SYSTEM, "out of memory in dispbeam");
93          }
94                                          /* assign packet fields */
# Line 405 | Line 405 | sortcomplist()                 /* fix our list order */
405                  complist = NULL;
406                  complen = 0;
407          } else if (i < complen-1) {
408 <                list2 = (PACKHEAD *)realloc((char *)complist,
408 >                list2 = (PACKHEAD *)realloc((void *)complist,
409                                  (i+1)*sizeof(PACKHEAD));
410                  if (list2 != NULL)
411                          complist = list2;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines