[vlc-commits] macosx: fix float lower bound check
Lyndon Brown
git at videolan.org
Wed Oct 14 15:26:42 CEST 2020
vlc | branch: master | Lyndon Brown <jnqnfe at 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 <robux4 at 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];
More information about the vlc-commits
mailing list