[Bf-blender-cvs] [3f84f0123eb] master: Cleanup: Fix build warning
Richard Antalik
noreply at git.blender.org
Thu Jul 29 13:12:41 CEST 2021
Commit: 3f84f0123ebe09791677db235b2474d55c72c974
Author: Richard Antalik
Date: Thu Jul 29 13:04:27 2021 +0200
Branches: master
https://developer.blender.org/rB3f84f0123ebe09791677db235b2474d55c72c974
Cleanup: Fix build warning
Introduced in 3964785a1458
===================================================================
M source/blender/editors/interface/view2d_draw.c
===================================================================
diff --git a/source/blender/editors/interface/view2d_draw.c b/source/blender/editors/interface/view2d_draw.c
index a9393b3a6e7..1496ce027ae 100644
--- a/source/blender/editors/interface/view2d_draw.c
+++ b/source/blender/editors/interface/view2d_draw.c
@@ -343,7 +343,7 @@ static void draw_horizontal_scale_indicators(const ARegion *region,
return;
}
- const int start_index = abs(start / distance) % draw_frequency;
+ const int start_index = abs((int)(start / distance)) % draw_frequency;
for (uint i = start_index; i < steps; i += draw_frequency) {
const float xpos_view = start + i * distance;
const float xpos_region = UI_view2d_view_to_region_x(v2d, xpos_view);
More information about the Bf-blender-cvs
mailing list