Commit 169c9a65 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Change comparison: MAX_INT fits in an int

Not sure how we ended up with the '-1' everywhere.
parent 34307c61
...@@ -86,7 +86,7 @@ template <typename T1, typename T2, typename T3> struct hash<tuple<T1, T2, T3>> ...@@ -86,7 +86,7 @@ template <typename T1, typename T2, typename T3> struct hash<tuple<T1, T2, T3>>
namespace pyston { namespace pyston {
template <typename T> template <typename T>
constexpr bool fitsInto(int64_t x) { constexpr bool fitsInto(int64_t x) {
return std::numeric_limits<T>::min() <= x && x < std::numeric_limits<T>::max(); return std::numeric_limits<T>::min() <= x && x <= std::numeric_limits<T>::max();
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment