Skip to content

Commit

Permalink
Squash a signed/unsigned comparison warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
TallJimbo committed May 18, 2017
1 parent 632839f commit 6d96849
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/astshim/SkyFrame.h
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ class SkyFrame : public Frame {

/// Set @ref SkyFrame_SkyRef "SkyRef": position defining location of the offset coordinate system.
void setSkyRef(std::vector<double> const &skyRef) {
detail::assertEqual(skyRef.size(), "skyRef length", 2, "number of axes");
detail::assertEqual(skyRef.size(), "skyRef length", 2u, "number of axes");
for (int i = 0; i < 2; ++i) {
setD(detail::formatAxisAttr("SkyRef", i + 1), skyRef[i]);
}
Expand All @@ -215,7 +215,7 @@ class SkyFrame : public Frame {

/// Set @ref SkyFrame_SkyRefP "SkyRefP": position defining orientation of the offset coordinate system.
void setSkyRefP(std::vector<double> const &skyRefP) {
detail::assertEqual(skyRefP.size(), "skyRefP length", 2, "number of axes");
detail::assertEqual(skyRefP.size(), "skyRefP length", 2u, "number of axes");
for (int i = 0; i < 2; ++i) {
setD(detail::formatAxisAttr("SkyRefP", i + 1), skyRefP[i]);
}
Expand Down

0 comments on commit 6d96849

Please sign in to comment.