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

Comparing ray/src/common/header.c (file contents):
Revision 2.44 by greg, Sun Mar 6 16:27:55 2022 UTC vs.
Revision 2.47 by greg, Mon Mar 14 22:57:24 2022 UTC

# Line 363 | Line 363 | globmatch(                     /* check for match of s against pattern p
363                          while (*s++);
364                          return(0);
365                  case '[':                       /* character set */
366 <                        setmatch = *s == *++p;
366 >                        setmatch = (*s == *++p);
367                          if (!*p)
368                                  return(0);
369                          while (*++p != ']') {
370                                  if (!*p)
371                                          return(0);
372                                  if (*p == '-') {
373 <                                        setmatch += (p[-1] <= *s && *s <= p[1]);
373 >                                        setmatch += (p[-1] <= *s) & (*s <= p[1]);
374                                          if (!*++p)
375                                                  break;
376                                  } else
# Line 381 | Line 381 | globmatch(                     /* check for match of s against pattern p
381                          s++;
382                          break;
383                  case '\\':                      /* literal next */
384 <                        p++;
384 >                        if (!*++p)
385 >                                return(0);
386                  /* fall through */
387                  default:                        /* normal character */
388                          if (*p != *s)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines