Merge pull request #2676 from nghiaho12/fix_double_promotion

Fixed double promotion warning when doing printf in Vector.hpp
This commit is contained in:
Lorenz Meier
2015-08-12 09:08:31 +02:00
+1 -1
View File
@@ -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");
}