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

Comparing ray/src/gen/genworm.c (file contents):
Revision 2.10 by greg, Fri May 4 23:56:49 2018 UTC vs.
Revision 2.12 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>
15   #include  <math.h>
17 #include  <string.h>
16  
17   #include  "calcomp.h"
18   #include  "rtio.h"
# Line 78 | Line 76 | char  *argv[];
76          scompile(stmp, NULL, 0);
77          sprintf(stmp, "%s(t)=%s;", RNAME, argv[6]);
78          scompile(stmp, NULL, 0);
79 <        nseg = atoi(argv[7]);
79 >        nseg = eval(argv[7]) + .5;
80          if (nseg <= 0)
81                  goto userror;
82  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines