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

Comparing ray/src/rt/colortab.c (file contents):
Revision 1.10 by greg, Tue Jan 16 16:00:00 1990 UTC vs.
Revision 1.11 by greg, Fri Jan 19 00:00:37 1990 UTC

# Line 80 | Line 80 | int    ncolors;
80                                  /* partition color space */
81          cut(ctree, 0, CLRCUBE, 0, ncolors);
82                                  /* clear histogram */
83 <        bzero(histo, sizeof(histo));
83 >        bzero((char *)histo, sizeof(histo));
84                                  /* return number of colors used */
85          return(ncolors);
86   }
# Line 155 | Line 155 | double  gam;
155   set_cmap(rmap, gmap, bmap)      /* set custom color correction map */
156   BYTE    *rmap, *gmap, *bmap;
157   {
158 <        bcopy(rmap, clrmap[RED], 256);
159 <        bcopy(gmap, clrmap[GRN], 256);
160 <        bcopy(bmap, clrmap[BLU], 256);
158 >        bcopy((char *)rmap, (char *)clrmap[RED], 256);
159 >        bcopy((char *)gmap, (char *)clrmap[GRN], 256);
160 >        bcopy((char *)bmap, (char *)clrmap[BLU], 256);
161   }
162  
163  
# Line 176 | Line 176 | int    c0, c1;
176          }
177                                          /* split box */
178          *tree = split(box);
179 <        bcopy(box, kb, sizeof(kb));
179 >        bcopy((char *)box, (char *)kb, sizeof(kb));
180                                                  /* do left (lesser) branch */
181          kb[prim(*tree)][1] = part(*tree);
182          cut(tree+(1<<level), level+1, kb, c0, (c0+c1)>>1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines