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

Comparing ray/src/util/rmatrix.c (file contents):
Revision 2.77 by greg, Thu Dec 21 23:58:05 2023 UTC vs.
Revision 2.78 by greg, Thu Feb 29 03:11:13 2024 UTC

# Line 501 | Line 501 | rmx_write_spec(const double *dp, int nc, int len, FILE
501          if (nc < 3) return(0);
502          scan = (uby8 *)tempbuffer((nc+1)*len);
503          if (!scan) return(0);
504 <        for (j = len; j--; dp += nc) {
504 >        for (j = 0; j < len; j++, dp += nc) {
505                  for (k = nc; k--; )
506                          scol[k] = dp[k];
507                  scolor2scolr(scan+j*(nc+1), scol, nc);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines