Fix building on some compilers (clang on OSX).
Reported and patch by jensverwiebe (jens verwiebe).
This commit is contained in:
@@ -307,7 +307,7 @@ static enum ISectType intersect_line_tri(
|
||||
fac = line_point_factor_v3(ix_pair[0], p0, p1);
|
||||
if ((fac >= e->eps_margin) && (fac <= 1.0f - e->eps_margin)) {
|
||||
copy_v3_v3(r_ix, ix_pair[0]);
|
||||
return (IX_EDGE_TRI_EDGE0 + i_t0);
|
||||
return (IX_EDGE_TRI_EDGE0 + (int)i_t0);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -402,7 +402,7 @@ static BMVert *bm_isect_edge_tri(
|
||||
#ifdef USE_DUMP
|
||||
printf("# cache hit (%d, %d, %d, %d)\n", UNPACK4(k_arr[i]));
|
||||
#endif
|
||||
*r_side = i;
|
||||
*r_side = (int)i;
|
||||
return iv;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user