Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Erwin <significant.bit@gmail.com>2017-02-11 08:27:43 +0300
committerMike Erwin <significant.bit@gmail.com>2017-02-11 08:27:43 +0300
commit768e4e991cc62129af4513a39c6ec9a75bd21f13 (patch)
tree48715e125f3a474cb61edd1c13267e3a56468647 /source/blender/editors/space_nla
parentbbc31e89292d918f5d1a69ad6b43a68adb8a509d (diff)
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.
Diffstat (limited to 'source/blender/editors/space_nla')
-rw-r--r--source/blender/editors/space_nla/nla_draw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_nla/nla_draw.c b/source/blender/editors/space_nla/nla_draw.c
index 5843f9a6031..9d34b6c4e2f 100644
--- a/source/blender/editors/space_nla/nla_draw.c
+++ b/source/blender/editors/space_nla/nla_draw.c
@@ -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