avcfg: Ensure that ternary operator always evaluates to int64
When building with MSVC, if the 3rd operator is a double, the entire expression always promoted double, and is then cast to int64. When TRUE, this evaluates to (gint64) (gdouble) (INT64_MAX) which overflows to INT64_MIN on MSVC, but not on C99 compilers. This causes us to fail the g_return_if_fail inside g_param_spec_int64 when built with MSVC.
Please register or sign in to comment