diff options
author | Richard Antalik <richardantalik@gmail.com> | 2021-07-29 14:04:27 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2021-07-29 14:11:55 +0300 |
commit | 3f84f0123ebe09791677db235b2474d55c72c974 (patch) | |
tree | 9bd94ecaf211a8de22e06bd5b331de552a1f6f62 /source/blender/editors/interface/view2d_draw.c | |
parent | 9cc8d50a046f4029df60a279dd86074b77c0da4a (diff) |
Cleanup: Fix build warning
Introduced in 3964785a1458
Diffstat (limited to 'source/blender/editors/interface/view2d_draw.c')
-rw-r--r-- | source/blender/editors/interface/view2d_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |