diff options
author | Stephan Seitz <theHamsta> | 2020-03-27 02:43:15 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-03-27 02:43:17 +0300 |
commit | 02518be634a63a1d7e5505d8dd94d9ed7565fdf4 (patch) | |
tree | 8c57b3cabcd6d68c525bf14ead4e98d4ad76d40c /source/blender/editors/interface/view2d.c | |
parent | 5cf66890197211b2a64cb30fc6ba746360e02ae0 (diff) |
Cleanup: suppress warning about float-to-int conversion
Differential Revision: https://developer.blender.org/D7212
Diffstat (limited to 'source/blender/editors/interface/view2d.c')
-rw-r--r-- | source/blender/editors/interface/view2d.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/view2d.c b/source/blender/editors/interface/view2d.c index a93c80f02d2..73dda74fed8 100644 --- a/source/blender/editors/interface/view2d.c +++ b/source/blender/editors/interface/view2d.c @@ -67,8 +67,8 @@ static void ui_view2d_curRect_validate_resize(View2D *v2d, bool resize, bool mas BLI_INLINE int clamp_float_to_int(const float f) { - const float min = INT_MIN; - const float max = INT_MAX; + const float min = (float) INT_MIN; + const float max = (float) INT_MAX; if (UNLIKELY(f < min)) { return min; |