[Bf-blender-cvs] [02518be634a] master: Cleanup: suppress warning about float-to-int conversion
Stephan Seitz
noreply at git.blender.org
Fri Mar 27 01:04:33 CET 2020
Commit: 02518be634a63a1d7e5505d8dd94d9ed7565fdf4
Author: Stephan Seitz
Date: Fri Mar 27 00:43:15 2020 +0100
Branches: master
https://developer.blender.org/rB02518be634a63a1d7e5505d8dd94d9ed7565fdf4
Cleanup: suppress warning about float-to-int conversion
Differential Revision: https://developer.blender.org/D7212
===================================================================
M source/blender/editors/interface/view2d.c
===================================================================
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;
More information about the Bf-blender-cvs
mailing list