Skip to content

Commit

Permalink
CalculateVMG: use double for maxW as everything else
Browse files Browse the repository at this point in the history
  • Loading branch information
did-g committed Apr 11, 2018
1 parent 5bc62b5 commit 2dd84a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Polar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,7 @@ void Polar::CalculateVMG(int VWi)
for(int i=0; i<4; i++) {
double upwind = i < 2 ? 1 : -1;
double maxVB = 0;
float maxW = NAN;
double maxW = NAN;
unsigned int maxWi = 0;
for(unsigned int Wi = 0; Wi < degree_steps.size(); Wi++) {
double W = degree_steps[Wi];
Expand Down

0 comments on commit 2dd84a1

Please sign in to comment.