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.10 by greg, Wed Mar 5 16:16:52 2003 UTC vs.
Revision 2.11 by schorsch, Sat Jun 7 12:50:20 2003 UTC

# Line 13 | Line 13 | static const char      RCSid[] = "$Id$";
13   #include "copyright.h"
14  
15   #include  <stdio.h>
16 <
16 > #include  <string.h>
17   #include  <errno.h>
18
18   #include  <math.h>
19  
20   #include  "calcomp.h"
# Line 255 | Line 254 | badarg:
254      eputs(actp->name);
255      eputs(": argument not a function\n");
256      quit(1);
257 +        return NULL; /* pro forma return */
258   }
259  
260  
# Line 386 | Line 386 | l_select()             /* return argument #(A1+1) */
386   {
387          register int  n;
388  
389 <        n = argument(1) + .5;
389 >        n = (int)(argument(1) + .5);
390          if (n == 0)
391                  return(nargum()-1);
392          if (n < 1 || n > nargum()-1) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines