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

Comparing ray/src/util/cmatrix.c (file contents):
Revision 2.39 by greg, Sat Mar 1 04:50:13 2025 UTC vs.
Revision 2.40 by greg, Sat Mar 22 01:27:22 2025 UTC

# Line 96 | Line 96 | get_cminfo(char *s, void *p)
96          char    fmt[MAXFMTLEN];
97          int     i;
98  
99 <        if (!strncmp(s, "NCOMP=", 6) && atoi(s+6) != 3) {
99 >        if (isncomp(s) && ncompval(s) != 3) {
100                  ip->err = "unexpected # components (must be 3)";
101                  return(-1);
102          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines