Skip to content

Commit

Permalink
Parens...
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Apr 30, 2018
1 parent b47698b commit 4611801
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pdal/util/Utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -686,8 +686,8 @@ namespace Utils
}

return std::is_same<double, T_OUT>::value ||
(in >= static_cast<double>(std::numeric_limits<T_OUT>::lowest()) &&
in <= static_cast<double>(std::numeric_limits<T_OUT>::max)());
(in >= (static_cast<double>std::numeric_limits<T_OUT>::lowest()) &&
in <= (static_cast<double>std::numeric_limits<T_OUT>::max)());
}

/**
Expand Down Expand Up @@ -727,8 +727,8 @@ namespace Utils
if (std::is_integral<T_OUT>::value)
in = static_cast<T_IN>(sround((double)in));
if ((std::is_same<T_OUT, double>::value) ||
in <= static_cast<double>(std::numeric_limits<T_OUT>::max)()) &&
in >= static_cast<double>(std::numeric_limits<T_OUT>::lowest())))
in <= (static_cast<double>std::numeric_limits<T_OUT>::max)()) &&
in >= (static_cast<double>std::numeric_limits<T_OUT>::lowest())))
{
out = static_cast<T_OUT>(in);
return true;
Expand Down

0 comments on commit 4611801

Please sign in to comment.