Skip to content

Commit

Permalink
Fix compiler warning for SpherePoint()
Browse files Browse the repository at this point in the history
by initializing the fields in the correct order.
  • Loading branch information
r-owen committed Mar 28, 2018
1 parent c944e67 commit 9cb2fb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/geom/SpherePoint.cc
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ SpherePoint::SpherePoint(Point3D const& vector) {
}
}

SpherePoint::SpherePoint() : _latitude(nan("")), _longitude(nan("")) {}
SpherePoint::SpherePoint() : _longitude(nan("")), _latitude(nan("")) {}

SpherePoint::SpherePoint(SpherePoint const& other) noexcept = default;

Expand Down

0 comments on commit 9cb2fb4

Please sign in to comment.