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

Comparing ray/src/util/rcomb.c (file contents):
Revision 2.24 by greg, Mon Jun 10 18:20:06 2024 UTC vs.
Revision 2.26 by greg, Fri Nov 8 17:52:26 2024 UTC

# Line 174 | Line 174 | xyzrow(ROPMAT *rop, int r, int p)
174  
175   /* Use the spectral sensitivity function to compute matrix coefficients */
176   void
177 < sensrow(ROPMAT *rop, int r, double (*sf)(SCOLOR sc, int ncs, const float wlpt[4]))
177 > sensrow(ROPMAT *rop, int r, double (*sf)(const SCOLOR sc, int ncs, const float wlpt[4]))
178   {
179          const int       nc = rop->imx.ncomp;
180          int             i;
# Line 852 | Line 852 | resize_inparr(int n2alloc)
852  
853          if (n2alloc == nall)
854                  return;
855 <        for (i = nall; i > n2alloc; i--) {
855 >        for (i = nall; i-- > n2alloc; ) {
856                  rmx_reset(&mop[i].imx);
857                  if (mop[i].rmp != &mop[i].imx)
858                          rmx_free(mop[i].rmp);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines