vlc | branch: master | Lyndon Brown <jnq...@gmail.com> | Sun Mar 31 07:34:10 
2019 +0200| [9f1c2f7aae1732bbf5374e3ade65a6ed14b0c966] | committer: Steve Lhomme

macosx: fix float lower bound check

needs to check -FLT_MAX not FLT_MIN, as explained in
c95d5fbea2122ac471f8aee86ee9f1cafeddeb00

Signed-off-by: Steve Lhomme <rob...@ycbcr.xyz>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9f1c2f7aae1732bbf5374e3ade65a6ed14b0c966
---

 modules/gui/macosx/preferences/prefs_widgets.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/macosx/preferences/prefs_widgets.m 
b/modules/gui/macosx/preferences/prefs_widgets.m
index 36859c7014..d4edc4fa7f 100644
--- a/modules/gui/macosx/preferences/prefs_widgets.m
+++ b/modules/gui/macosx/preferences/prefs_widgets.m
@@ -811,7 +811,7 @@ o_textfield = [[NSSecureTextField alloc] initWithFrame: 
s_rc];              \
                                                      withView: parentView];
             break;
         case CONFIG_ITEM_FLOAT:
-            if (_p_item->min.f > FLT_MIN && _p_item->max.f < FLT_MAX)
+            if (_p_item->min.f > -FLT_MAX && _p_item->max.f < FLT_MAX)
                 control = [[RangedFloatConfigControl alloc] initWithItem: 
_p_item withView: parentView];
             else
                 control = [[FloatConfigControl alloc] initWithItem: _p_item 
withView: parentView];

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to