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

Comparing ray/src/px/ra_t16.c (file contents):
Revision 1.5 by greg, Fri Oct 20 16:42:28 1989 UTC vs.
Revision 1.6 by greg, Thu Jan 18 23:58:21 1990 UTC

# Line 189 | Line 189 | register FILE  *fp;
189  
190          if (ip != NULL)
191                  if (nidbytes)
192 <                        fread(ip, nidbytes, 1, fp);
192 >                        fread((char *)ip, nidbytes, 1, fp);
193                  else
194                          *ip = '\0';
195          else if (nidbytes)
# Line 331 | Line 331 | unsigned char  *d;
331   FILE  *fp;
332   {
333          if (h->dataType == IM_RGB) {            /* uncompressed */
334 <                if (fwrite(d, 3*h->x, h->y, fp) != h->y)
334 >                if (fwrite((char *)d, 3*h->x, h->y, fp) != h->y)
335                          quiterr("error writing targa file");
336                  return;
337          }
# Line 367 | Line 367 | FILE  *fp;
367          int  r, g, b;
368  
369          if (h->dataType == IM_RGB) {            /* uncompressed */
370 <                if (fread(data, 3*h->x, h->y, fp) != h->y)
370 >                if (fread((char *)data, 3*h->x, h->y, fp) != h->y)
371                          goto readerr;
372                  return;
373          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines