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
commit 5ca57a0aed
1 changed files with 1 additions and 1 deletions

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");
}