From a4726292b277fbc5ac2d73be467824d780c188b6 Mon Sep 17 00:00:00 2001 From: Nghia Ho Date: Tue, 11 Aug 2015 21:30:05 -0700 Subject: [PATCH] fixed double promotion warning when doing printf --- src/lib/mathlib/math/Vector.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/mathlib/math/Vector.hpp b/src/lib/mathlib/math/Vector.hpp index cf517b9f26..00c0411167 100644 --- a/src/lib/mathlib/math/Vector.hpp +++ b/src/lib/mathlib/math/Vector.hpp @@ -353,7 +353,7 @@ public: printf("[ "); for (unsigned int i = 0; i < N; i++) - printf("%.3f\t", data[i]); + printf("%.3f\t", (double)data[i]); printf("]\n"); }