fixed double promotion warning when doing printf

This commit is contained in:
Nghia Ho 2015-08-11 21:30:05 -07:00
parent 043bb1ffe5
commit a4726292b2
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");
}