fix warning

Strip start & end are floating-point values, so clang expected fabsf here. Casting to int since we want a discrete number of vertices.
This commit is contained in:
Mike Erwin 2017-02-11 00:27:43 -05:00
parent bbc31e8929
commit 768e4e991c
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ static void nla_draw_strip_curves(NlaStrip *strip, float yminc, float ymaxc)
float cfra;
/* plot the curve (over the strip's main region) */
immBegin(GL_LINE_STRIP, abs(strip->end - strip->start + 1));
immBegin(GL_LINE_STRIP, abs((int)(strip->end - strip->start) + 1));
/* sample at 1 frame intervals, and draw
* - min y-val is yminc, max is y-maxc, so clamp in those regions