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

Comparing ray/src/common/cone.c (file contents):
Revision 1.4 by greg, Wed May 22 16:51:12 1991 UTC vs.
Revision 1.6 by greg, Wed Oct 23 13:43:12 1991 UTC

# Line 148 | Line 148 | OBJREC  *o;
148   {
149          register CONE  *co = (CONE *)o->os;
150  
151 +        if (o->os == NULL)
152 +                return;
153          if (co->tm != NULL)
154                  free((char *)co->tm);
155          free(o->os);
# Line 159 | Line 161 | conexform(co)                  /* get cone transformation matrix */
161   register CONE  *co;
162   {
163          double  sqrt(), fabs();
164 <        double  m4[4][4];
164 >        MAT4  m4;
165          register double  d;
166          register int  i;
167  
168 <        co->tm = (double (*)[4])malloc(sizeof(m4));
168 >        co->tm = (FLOAT (*)[4])malloc(sizeof(m4));
169          if (co->tm == NULL)
170                  error(SYSTEM, "out of memory in conexform");
171  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines