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

Comparing ray/src/hd/sm_sets.c (file contents):
Revision 3.6 by greg, Sat Feb 22 02:07:25 2003 UTC vs.
Revision 3.7 by greg, Wed Apr 23 00:52:34 2003 UTC

# Line 34 | Line 34 | OBJECT  *oset;
34      osi = qtfreesets;
35      qtfreesets = (int)qtsettab[osi];
36    } else if ((osi = qtnumsets++) % QTSETIBLK == 0) {
37 <    qtsettab = (OBJECT **)realloc((char *)qtsettab,
37 >    qtsettab = (OBJECT **)realloc((void *)qtsettab,
38                                    (unsigned)(osi+QTSETIBLK)*sizeof(OBJECT *));
39      if (qtsettab == NULL)
40        goto memerr;
# Line 74 | Line 74 | OBJECT  id;
74          }
75          deletelem(qtsettab[lf], id);
76          if (QTONTHRESH(qtsettab[lf][0]))
77 <                qtsettab[lf] = (OBJECT *)realloc((char *)qtsettab[lf],
77 >                qtsettab[lf] = (OBJECT *)realloc((void *)qtsettab[lf],
78                                  QTNODESIZ(qtsettab[lf][0])*sizeof(OBJECT));
79          return(qt);
80   }
# Line 105 | Line 105 | OBJECT  id;
105          lf = QT_SET_INDEX(qt);
106   #endif
107          if (QTONTHRESH(qtsettab[lf][0])) {
108 <                qtsettab[lf] = (OBJECT *)realloc((char *)qtsettab[lf],
108 >                qtsettab[lf] = (OBJECT *)realloc((void *)qtsettab[lf],
109                                  QTNODESIZ(qtsettab[lf][0]+1)*sizeof(OBJECT));
110                  if (qtsettab[lf] == NULL)
111                          error(SYSTEM, "out of memory in qtaddelem");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines