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

Comparing ray/src/common/calfunc.c (file contents):
Revision 2.23 by greg, Tue Jun 11 22:13:50 2019 UTC vs.
Revision 2.25 by greg, Thu Nov 7 23:19:54 2019 UTC

# Line 150 | Line 150 | funset(                                /* set a library function */
150          if (cp == fname) return;
151      }
152      if ((lp = liblookup(fname)) == NULL) {      /* insert */
153 +        if (fptr == NULL)
154 +                return;                         /* nothing! */
155          if (libsize >= MAXLIB) {
156              eputs("Too many library functons!\n");
157              quit(1);
# Line 409 | Line 411 | l_max(char *nm)                /* general maximum function */
411   {
412          int  n = nargum();
413          int  i = 1;
414 <        int  vmax = argument(1);
414 >        double  vmax = argument(1);
415  
416          while (i++ < n) {
417                  double  v = argument(i);
# Line 425 | Line 427 | l_min(char *nm)                /* general minimum function */
427   {
428          int  n = nargum();
429          int  i = 1;
430 <        int  vmin = argument(1);
430 >        double  vmin = argument(1);
431  
432          while (i++ < n) {
433                  double  v = argument(i);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines