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

Comparing ray/src/util/rtcontrib.c (file contents):
Revision 1.25 by greg, Tue Sep 13 22:58:22 2005 UTC vs.
Revision 1.27 by greg, Tue Sep 20 17:05:11 2005 UTC

# Line 330 | Line 330 | main(int argc, char *argv[])
330          quit(0);
331   }
332  
333 + #ifndef SIGALRM
334 + #define SIGALRM SIGTERM
335 + #endif
336   /* kill persistent rtrace process */
337   static void
338   killpersist(void)
339   {
340          FILE    *fp = fopen(persistfn, "r");
341 <        int     pid;
341 >        RT_PID  pid;
342  
343          if (fp == NULL)
344                  return;
# Line 713 | Line 716 | add_contrib(const char *modn)
716          bn = (int)(evalue(mp->binv) + .5);
717          if (bn <= 0)
718                  bn = 0;
719 <        else if (bn > mp->nbins) {      /* new bin */
719 >        else if (bn >= mp->nbins) {     /* new bin */
720                  mp = (MODCONT *)realloc(mp, sizeof(MODCONT) +
721                                                  bn*sizeof(DCOLOR));
722                  if (mp == NULL)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines