From a192f51545bbfd15d8bc8b053840138bb5a675c3 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Fri, 4 May 2018 21:45:36 +0100 Subject: [PATCH] output: fix implicit conversion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit src/output.c:731:38: warning: implicit conversion from ‘float’ to ‘double’ when passing argument to function [-Wdouble-promotion] Signed-off-by: Sami Kerola --- src/output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output.c b/src/output.c index a651ccb..9261bb1 100644 --- a/src/output.c +++ b/src/output.c @@ -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\n", type, fl, type); }