[vlc-commits] [Git][videolan/vlc][master] cmdline: avoid float conversion from constant

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Nov 23 12:54:02 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
c886d291 by Steve Lhomme at 2023-11-23T12:35:21+00:00
cmdline: avoid float conversion from constant

- - - - -


1 changed file:

- src/config/cmdline.c


Changes:

=====================================
src/config/cmdline.c
=====================================
@@ -406,7 +406,7 @@ int config_LoadCmdLine( libvlc_int_t *p_this, int i_argc,
             /* suggestion matching */
             if( !state.opt )
             {
-                float jw_filter = 0.8, best_metric = jw_filter, metric;
+                float jw_filter = 0.8f, best_metric = jw_filter, metric;
                 const char *best = NULL;
                 const char *jw_a = ppsz_argv[state.ind-1] + 2;
                 for (size_t i = 0; i < (size_t)i_opts; i++) {



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c886d291aa4c13a7ef47688059dd15e7963d6617

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c886d291aa4c13a7ef47688059dd15e7963d6617
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list