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

Comparing ray/src/common/bsdf_t.c (file contents):
Revision 3.17 by greg, Thu Jun 9 17:09:39 2011 UTC vs.
Revision 3.19 by greg, Thu Jul 7 15:25:09 2011 UTC

# Line 608 | Line 608 | SDgetTreCDist(const FVECT inVec, SDComponent *sdc)
608   {
609          const SDTre     *sdt;
610          double          inCoord[2];
611        int             vflags;
611          int             i;
612          SDTreCDst       *cd, *cdlast;
613                                          /* check arguments */
# Line 711 | Line 710 | SDsampTreCDist(FVECT ioVec, double randX, const SDCDst
710                                          /* binary search to find position */
711          ilower = 0; iupper = cd->calen;
712          while ((i = (iupper + ilower) >> 1) != ilower)
713 <                if ((long)target >= (long)cd->carr[i].cuml)
713 >                if (target >= cd->carr[i].cuml)
714                          ilower = i;
715                  else
716                          iupper = i;
# Line 881 | Line 880 | load_bsdf_data(SDData *sd, ezxml_t wdb, int ndim)
880          SDSpectralDF    *df;
881          SDTre           *sdt;
882          char            *sdata;
884        int             i;
883                                          /* allocate BSDF component */
884          sdata = ezxml_txt(ezxml_child(wdb, "WavelengthDataDirection"));
885          if (!sdata)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines