--- ray/src/util/dctimestep.c 2011/04/11 03:47:46 2.16 +++ ray/src/util/dctimestep.c 2011/04/15 18:43:57 2.17 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: dctimestep.c,v 2.16 2011/04/11 03:47:46 greg Exp $"; +static const char RCSid[] = "$Id: dctimestep.c,v 2.17 2011/04/15 18:43:57 greg Exp $"; #endif /* * Compute time-step result using Daylight Coefficient method. @@ -300,13 +300,11 @@ cm_bsdf(const COLOR bsdfLamb, const COLOR specCol, con CMATRIX *cm = cm_alloc(bsdf->nout, bsdf->ninc); int nbadohm = 0; int nneg = 0; - float dom; - int doforward; int r, c; /* reciprocity is "transparent" */ for (c = 0; c < cm->ncols; c++) { - /* get projected solid angle */ - dom = mBSDF_incohm(bsdf,c); + const double dom = mBSDF_incohm(bsdf,c); + /* projected solid angle */ nbadohm += (dom <= 0); for (r = 0; r < cm->nrows; r++) {