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

Comparing ray/src/rt/source.c (file contents):
Revision 2.31 by greg, Tue Mar 11 17:08:55 2003 UTC vs.
Revision 2.32 by greg, Wed Apr 23 00:52:34 2003 UTC

# Line 293 | Line 293 | char  *p;                      /* data for f */
293          for (sn = 0; srcray(&sr, r, &si); sn++) {
294                  if (sn >= maxcntr) {
295                          maxcntr = sn + MAXSPART;
296 <                        srccnt = (CONTRIB *)realloc((char *)srccnt,
296 >                        srccnt = (CONTRIB *)realloc((void *)srccnt,
297                                          maxcntr*sizeof(CONTRIB));
298 <                        cntord = (CNTPTR *)realloc((char *)cntord,
298 >                        cntord = (CNTPTR *)realloc((void *)cntord,
299                                          maxcntr*sizeof(CNTPTR));
300                          if (srccnt == NULL | cntord == NULL)
301                                  error(SYSTEM, "out of memory in direct");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines