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

Comparing ray/src/cv/bsdfquery.c (file contents):
Revision 2.2 by greg, Fri Nov 22 00:00:27 2013 UTC vs.
Revision 2.3 by greg, Fri Apr 11 20:27:23 2014 UTC

# Line 27 | Line 27 | readIOdir(FVECT idir, FVECT odir, FILE *fp, int fmt)
27  
28          switch (fmt) {
29          case 'a':
30 <                if (fscanf(fp, "%lf %lf %lf %lf %lf %lf",
31 <                        dvec, dvec+1, dvec+2, dvec+3, dvec+4, dvec+5) != 6)
30 >                if (fscanf(fp, FVFORMAT, dvec, dvec+1, dvec+2) != 3 ||
31 >                                fscanf(fp, FVFORMAT, dvec+3, dvec+4, dvec+5) != 3)
32                          return(0);
33                  VCOPY(idir, dvec);
34                  VCOPY(odir, dvec+3);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines