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
657557be
Commit
657557be
authored
Feb 27, 2015
by
Marius Wachtler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PyInt_AsLong as bool support
parent
6d2f1617
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/runtime/int.cpp
src/runtime/int.cpp
+1
-1
No files found.
src/runtime/int.cpp
View file @
657557be
...
...
@@ -39,7 +39,7 @@ extern "C" unsigned long PyInt_AsUnsignedLongMask(PyObject* op) noexcept {
extern
"C"
long
PyInt_AsLong
(
PyObject
*
op
)
noexcept
{
// This method should do quite a bit more, including checking tp_as_number->nb_int (or calling __int__?)
if
(
op
->
cls
==
int_cls
)
if
(
isSubclass
(
op
->
cls
,
int_cls
)
)
return
static_cast
<
BoxedInt
*>
(
op
)
->
n
;
if
(
op
->
cls
==
long_cls
)
...
...
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