Code cleanup: Add -Werror=float-conversion to Cycles

This commit is contained in:
Campbell Barton
2014-05-03 07:22:14 +10:00
parent 43d5e54a79
commit 8d16869d83
21 changed files with 106 additions and 96 deletions

View File

@@ -94,7 +94,7 @@ void DiagSplit::partition_edge(Patch *patch, float2 *P, int *t0, int *t1, float2
*t1 = T(patch, *P, Pend);
}
else {
int I = floor(t*0.5f);
int I = (int)floor((float)t*0.5f);
*P = interp(Pstart, Pend, (t == 0)? 0: I/(float)t); /* XXX is t faces or verts */
*t0 = I;
*t1 = t - I;