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

Comparing ray/src/hd/rhd_geom.c (file contents):
Revision 3.9 by greg, Sat Feb 22 02:07:24 2003 UTC vs.
Revision 3.11 by schorsch, Thu Jun 26 00:58:10 2003 UTC

# Line 23 | Line 23 | static char    *newportlist[MAXPORT];  /* new portal file
23   static struct gmEntry {
24          char    *gfile;                 /* geometry file name */
25          FVECT   cent;                   /* centroid */
26 <        FLOAT   rad;                    /* radius */
26 >        RREAL   rad;                    /* radius */
27          int     listid;                 /* display list identifier */
28          int     nlists;                 /* number of lists allocated */
29   } gmCurrent[MAXGEO], gmNext[MAXGEO];    /* current and next list */
# Line 81 | Line 81 | gmEndGeom()                    /* make next list current */
81                          freestr(gmCurrent[i].gfile);
82                  }
83          }
84 <        bcopy((char *)gmNext, (char *)gmCurrent, sizeof(gmNext));
85 <        bzero((char *)gmNext, sizeof(gmNext));
84 >        bcopy((void *)gmNext, (void *)gmCurrent, sizeof(gmNext));
85 >        bzero((void *)gmNext, sizeof(gmNext));
86   }
87  
88  
# Line 196 | Line 196 | gmEndPortal()                  /* close portal list and return GL lis
196                  }
197          FORALLPORT(curportlist, n)              /* free old file list */
198                  freestr(curportlist[n]);
199 <        bcopy((char *)newportlist, (char *)curportlist, sizeof(newportlist));
200 <        bzero((char *)newportlist, sizeof(newportlist));
199 >        bcopy((void *)newportlist, (void *)curportlist, sizeof(newportlist));
200 >        bzero((void *)newportlist, sizeof(newportlist));
201          return(gmPortals);                      /* return GL list id */
202   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines