forked from Archive/PX4-Autopilot
Merge pull request #2676 from nghiaho12/fix_double_promotion
Fixed double promotion warning when doing printf in Vector.hpp
This commit is contained in:
commit
5ca57a0aed
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue