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

Comparing ray/src/common/bsdf_t.c (file contents):
Revision 3.34 by greg, Sun Mar 23 19:24:11 2014 UTC vs.
Revision 3.35 by greg, Mon Mar 24 04:00:45 2014 UTC

# Line 517 | Line 517 | build_scaffold(float val, const double *cmin, double c
517                  sp->wmax = wid;
518          if (sp->alen >= sp->nall) {     /* need more space? */
519                  struct outdir_s *ndarr;
520 <                sp->nall += 1024;
520 >                sp->nall = (int)(1.5*sp->nall) + 256;
521                  ndarr = (struct outdir_s *)realloc(sp->darr,
522                                          sizeof(struct outdir_s)*sp->nall);
523                  if (ndarr == NULL) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines