Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
169c9a65
Commit
169c9a65
authored
Dec 02, 2015
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change comparison: MAX_INT fits in an int
Not sure how we ended up with the '-1' everywhere.
parent
34307c61
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/core/common.h
src/core/common.h
+1
-1
No files found.
src/core/common.h
View file @
169c9a65
...
@@ -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
();
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment