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

Comparing ray/src/common/color.c (file contents):
Revision 1.1 by greg, Thu Feb 2 10:34:29 1989 UTC vs.
Revision 1.2 by greg, Wed Mar 15 13:48:37 1989 UTC

# Line 313 | Line 313 | register COLR  clr;
313          if (clr[EXP] == 0)
314                  col[RED] = col[GRN] = col[BLU] = 0.0;
315          else {
316 <                f = ldexp(1.0, clr[EXP]-(COLXS+8));
316 >                f = ldexp(1.0, (int)clr[EXP]-(COLXS+8));
317                  col[RED] = (clr[RED] + 0.5)*f;
318                  col[GRN] = (clr[GRN] + 0.5)*f;
319                  col[BLU] = (clr[BLU] + 0.5)*f;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines