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

Comparing ray/src/common/readfargs.c (file contents):
Revision 2.8 by greg, Tue Feb 25 02:47:21 2003 UTC vs.
Revision 2.10 by schorsch, Sun Jul 27 22:12:01 2003 UTC

# Line 26 | Line 26 | FILE  *fp;
26  
27          if (!getint(sbuf) || (n = atoi(sbuf)) < 0)
28                  return(0);
29 <        if (fa->nsargs = n) {
29 >        if ( (fa->nsargs = n) ) {
30                  fa->sarg = (char **)malloc(n*sizeof(char *));
31                  if (fa->sarg == NULL)
32                          return(-1);
# Line 57 | Line 57 | FILE  *fp;
57   #endif
58          if (!getint(sbuf) || (n = atoi(sbuf)) < 0)
59                  return(0);
60 <        if (fa->nfargs = n) {
61 <                fa->farg = (FLOAT *)malloc(n*sizeof(FLOAT));
60 >        if ( (fa->nfargs = n) ) {
61 >                fa->farg = (RREAL *)malloc(n*sizeof(RREAL));
62                  if (fa->farg == NULL)
63                          return(-1);
64                  for (i = 0; i < n; i++) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines