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

Comparing ray/src/hd/sm.c (file contents):
Revision 3.16 by greg, Sat Feb 22 02:07:25 2003 UTC vs.
Revision 3.18 by greg, Fri Jun 20 00:25:49 2003 UTC

# Line 257 | Line 257 | int resize;
257   #endif
258          if (len > tempbuflen) {
259                  if (tempbuflen > 0)
260 <                        tempbuf = realloc(tempbuf, len);
260 >                        tempbuf = realloc((void *)tempbuf, len);
261                  else
262                          tempbuf = malloc(len);
263                  tempbuflen = tempbuf==NULL ? 0 : len;
# Line 327 | Line 327 | int max_verts,max_tris;
327        goto memerr;
328  
329      for(i=0; i< T_FLAGS; i++)
330 <      if(!(SM_NTH_FLAGS(sm,i)=(int4 *)malloc(fbytes)))
330 >      if(!(SM_NTH_FLAGS(sm,i)=(int32 *)malloc(fbytes)))
331          goto memerr;
332  
333      SM_MAX_VERTS(sm) = max_verts;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines