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

Comparing ray/src/rt/rcontrib.c (file contents):
Revision 2.22 by greg, Sat Jul 19 20:03:03 2014 UTC vs.
Revision 2.23 by greg, Mon Aug 25 13:18:30 2014 UTC

# Line 286 | Line 286 | trace_contrib(RAY *r)
286          if ((bval = evalue(mp->binv)) <= -.5)   /* and get bin number */
287                  return;                         /* silently ignore negatives */
288          if ((bn = (int)(bval + .5)) >= mp->nbins) {
289 <                error(WARNING, "bad bin number (ignored)");
289 >                sprintf(errmsg, "bad bin number (%d ignored)", bn);
290 >                error(WARNING, errmsg);
291                  return;
292          }
293          raycontrib(contr, r, PRIMARY);          /* compute coefficient */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines