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

Comparing ray/src/px/clrtab.c (file contents):
Revision 2.15 by schorsch, Mon Jun 30 14:59:12 2003 UTC vs.
Revision 2.16 by schorsch, Sun Jul 27 22:12:03 2003 UTC

# Line 257 | Line 257 | register int   box[3][2];
257          for (r = box[RED][0]; r < box[RED][1]; r++)
258              for (g = box[GRN][0]; g < box[GRN][1]; g++)
259                  for (b = box[BLU][0]; b < box[BLU][1]; b++) {
260 <                    if (c = histo[r][g][b]) {
260 >                    if ( (c = histo[r][g][b]) ) {
261                          n += c;
262                          sum[RED] += (long)c*r;
263                          sum[GRN] += (long)c*g;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines