ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cv/bsdftrans.cpp
(Generate patch)

Comparing ray/src/cv/bsdftrans.cpp (file contents):
Revision 2.2 by greg, Wed Mar 26 22:29:08 2014 UTC vs.
Revision 2.3 by greg, Sat Mar 29 21:51:59 2014 UTC

# Line 42 | Line 42 | plan_transport(MIGRATION *mig)
42                                  progname);
43                  exit(1);
44          }
45 +        if (n > mtx_nrows(mig)+mtx_ncols(mig)-1) {
46 +                fprintf(stderr, "%s: signature overflow in plan_transport()!\n",
47 +                                progname);
48 +                exit(1);
49 +        }
50          while (n-- > 0)                         /* assign sparse matrix */
51                  mtx_coef(mig, flow[n].from, flow[n].to) = flow[n].amount;
52   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines