From 76b4e15bb04c58b541ca21645d54da942e8d2d0e Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Fri, 11 Aug 2017 19:56:24 +0200 Subject: [PATCH] Fix issue with printf formatting. --- example/ex-multi03.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/ex-multi03.c b/example/ex-multi03.c index bc0239f2..575c2396 100644 --- a/example/ex-multi03.c +++ b/example/ex-multi03.c @@ -49,7 +49,7 @@ static inline bool boolean_in_str(bool *b, FILE *f) /* Then the OUT/IN functions of float */ static inline void real_out_str(FILE *f, float r) { - fprintf(f, "%f", r); + fprintf(f, "%f", (double) r); } static inline bool real_in_str(float *r, FILE *f)