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.26 by schorsch, Mon Sep 19 11:30:11 2005 UTC vs.
Revision 1.27 by greg, Tue Sep 20 17:05:11 2005 UTC

# Line 716 | 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