Skip to content

Commit

Permalink
Fix two compiler warnings
Browse files Browse the repository at this point in the history
...about comparing unsigned int to int
  • Loading branch information
r-owen committed Mar 22, 2017
1 parent 489f756 commit 7d257d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/astshim/Frame.h
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,7 @@ class Frame : public Mapping {
axis order for output data).
*/
void permAxes(std::vector<int> perm) {
detail::assertEqual(perm.size(), "perm.size()", getNaxes(), "naxes");
detail::assertEqual(static_cast<int>(perm.size()), "perm.size()", getNaxes(), "naxes");
astPermAxes(getRawPtr(), perm.data());
assertOK();
}
Expand Down Expand Up @@ -1504,7 +1504,7 @@ class Frame : public Mapping {
*/
template <typename T>
void assertPointLength(T const &p, char const *name) const {
if (p.size() != getNin()) {
if (static_cast<int>(p.size()) != getNin()) {
std::ostringstream os;
os << "point " << name << " has " << p.size() << " axes, but " << getNin() << " required";
throw std::invalid_argument(os.str());
Expand Down

0 comments on commit 7d257d3

Please sign in to comment.