Narrowing conversion error in prefs2_prefs.h

Started by ajschult, June 26, 2016, 03:12:00 AM

Previous topic - Next topic

ajschult

compiling avidemux_core/ADM_coreUtils/src/prefs.cpp, gcc 6.1.1complains

/home/andrew/build/avidemux/avidemux2/avidemux_core/ADM_coreUtils/src/prefs2_pref.h:60:1: error: narrowing conversion of ââ,¬Ëœ2147483647ââ,¬â,,¢ from ââ,¬Ëœintââ,¬â,,¢ to ââ,¬Ëœfloatââ,¬â,,¢ inside { } [-Wnarrowing]

It's actually complaining about the FEATURES_CPU_CAPS line,

{ FEATURES_CPU_CAPS,"features.cpu_caps"                               ,ADM_param_uint32_t       ,"2147483647",  0,      2147483647},

The error will go away if it's 2147483647.0f, but it looks like FEATURES_CPU_CAPS is really supposed to be INT_MAX, which would fail.