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

Comparing ray/src/cv/mgf2rad.c (file contents):
Revision 2.26 by schorsch, Thu Jun 26 00:58:09 2003 UTC vs.
Revision 2.27 by schorsch, Sun Jul 27 22:12:01 2003 UTC

# Line 163 | Line 163 | char   **av;
163                  if (r2 == 0.)
164                          return(MG_EILL);
165                  inv = r2 < 0.;
166 <        } else if (r2 != 0. && inv ^ r2 < 0.)
166 >        } else if (r2 != 0. && inv ^ (r2 < 0.))
167                  return(MG_EILL);
168          if (inv) {
169                  r1 = -r1;
# Line 276 | Line 276 | char   **av;
276          xf_rotvect(norm, cv->n);                /* rotate normal */
277          r1 = xf_scale(atof(av[2]));             /* scale radii */
278          r2 = xf_scale(atof(av[3]));
279 <        if (r1 < 0. | r2 <= r1)
279 >        if ((r1 < 0.) | (r2 <= r1))
280                  return(MG_EILL);
281          if ((mat = material()) == NULL)         /* get material */
282                  return(MG_EBADMAT);
# Line 490 | Line 490 | material()                     /* get (and print) current material */
490          }
491          d = c_cmaterial->rd + c_cmaterial->td +
492                          c_cmaterial->rs + c_cmaterial->ts;
493 <        if (d < 0. | d > 1.)
493 >        if ((d < 0.) | (d > 1.))
494                  return(NULL);
495                                          /* check for glass/dielectric */
496          if (c_cmaterial->nr > 1.1 &&
# Line 621 | Line 621 | addarg(op, arg)                                /* add argument and advance pointer
621   register char   *op, *arg;
622   {
623          *op = ' ';
624 <        while (*++op = *arg++)
624 >        while ( (*++op = *arg++) )
625                  ;
626          return(op);
627   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines