Fixed #6182 (Format specifier check confused by ternary operator)