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

Comparing ray/src/gen/mksource.c (file contents):
Revision 2.6 by greg, Wed Aug 10 22:28:45 2011 UTC vs.
Revision 2.7 by greg, Mon Aug 15 19:48:06 2011 UTC

# Line 246 | Line 246 | get_threshold(const TRITREE *tree)
246          long    exphisto[256];
247          int     i;
248                                                  /* compute sample histogram */
249 <        memset((void *)exphisto, 0, sizeof(exphisto));
249 >        memset(exphisto, 0, sizeof(exphisto));
250          for (i = 0; i < NTRUNKBR; i++)
251                  get_ehisto(&tree->kid[i], exphisto);
252                                                  /* use 98th percentile */
# Line 355 | Line 355 | claimlight(COLOR intens, TRITREE *node, FVECT cent, do
355          if (remaining)
356                  return;
357                                          /* consolidate empties */
358 <        free((void *)node->kid); node->kid = NULL;
358 >        free(node->kid); node->kid = NULL;
359          copycolr(node->val, blkclr);
360          node->sd = node->gdv[0];        /* doesn't really matter */
361   }
# Line 387 | Line 387 | getlost(LOSTLIGHT **llp, COLOR intens, FVECT cent, dou
387                  if (fdir2diff(thisp->sd,cent) <= maxr2) {
388                          LOSTLIGHT       *mynext = thisp->next;
389                          addcolor(intens, thisp->intens);
390 <                        free((void *)thisp);
390 >                        free(thisp);
391                          lastp->next = mynext;
392                  } else
393                          lastp = thisp;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines