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

Comparing ray/src/gen/genrev.c (file contents):
Revision 2.12 by greg, Fri May 4 23:56:49 2018 UTC vs.
Revision 2.14 by greg, Sat Dec 28 18:05:14 2019 UTC

# Line 12 | Line 12 | static const char      RCSid[] = "$Id$";
12   */
13  
14   #include  <stdlib.h>
15 #include  <stdio.h>
16 #include  <string.h>
15   #include  <math.h>
16  
17   #include  "rtio.h"
# Line 130 | Line 128 | char  *argv[];
128          scompile(stmp, NULL, 0);
129          sprintf(stmp, "%s(t)=%s;", RNAME, argv[4]);
130          scompile(stmp, NULL, 0);
131 <        nseg = atoi(argv[5]);
131 >        nseg = eval(argv[5]) + .5;
132          if (nseg <= 0)
133                  goto userror;
134          modname = smooth ? "Phong" : argv[1];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines