output: fix implicit conversion

src/output.c:731:38: warning: implicit conversion from ‘float’ to ‘double’
when passing argument to function [-Wdouble-promotion]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2018-05-04 21:45:36 +01:00
parent 679d63dd9f
commit a192f51545
No known key found for this signature in database
GPG key ID: A9553245FDE9B739

View file

@ -726,7 +726,7 @@ static void output_double_color(struct conf_t *state,
* \param type HTML tag name.
* \param fl Actual payload of the printout.
*/
static void output_float(FILE *restrict f, char const *restrict type, float fl)
static void output_float(FILE *restrict f, char const *restrict type, double fl)
{
fprintf(f, "<%s>%.3f</%s>\n", type, fl, type);
}