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
044a2e51
Commit
044a2e51
authored
Feb 11, 2016
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A few small fixes
parent
fc46bc42
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
src/runtime/inline/list.cpp
src/runtime/inline/list.cpp
+1
-1
src/runtime/objmodel.cpp
src/runtime/objmodel.cpp
+4
-1
No files found.
src/runtime/inline/list.cpp
View file @
044a2e51
...
...
@@ -83,7 +83,7 @@ Box* listiter_next(Box* s) noexcept {
Box
*
rtn
=
self
->
l
->
elts
->
elts
[
self
->
pos
];
self
->
pos
++
;
return
rtn
;
return
incref
(
rtn
)
;
}
template
<
ExceptionStyle
S
>
Box
*
listiterNext
(
Box
*
s
)
noexcept
(
S
==
CAPI
)
{
...
...
src/runtime/objmodel.cpp
View file @
044a2e51
...
...
@@ -4938,6 +4938,7 @@ Box* binopInternal(Box* lhs, Box* rhs, int op_type, bool inplace, BinopRewriteAr
Box
*
irtn
=
NULL
;
if
(
inplace
)
{
assert
(
0
&&
"check refcounting"
);
// XXX I think we need to make sure that we keep these strings alive?
DecrefHandle
<
BoxedString
>
iop_name
(
getInplaceOpName
(
op_type
));
if
(
rewrite_args
)
{
...
...
@@ -4976,7 +4977,7 @@ Box* binopInternal(Box* lhs, Box* rhs, int op_type, bool inplace, BinopRewriteAr
}
}
B
oxedString
*
op_name
=
getOpName
(
op_type
);
B
ORROWED
(
BoxedString
*
)
op_name
=
getOpName
(
op_type
);
Box
*
lrtn
;
if
(
rewrite_args
)
{
CallattrRewriteArgs
srewrite_args
(
rewrite_args
->
rewriter
,
rewrite_args
->
lhs
,
rewrite_args
->
destination
);
...
...
@@ -5022,6 +5023,8 @@ Box* binopInternal(Box* lhs, Box* rhs, int op_type, bool inplace, BinopRewriteAr
}
BoxedString
*
rop_name
=
getReverseOpName
(
op_type
);
AUTO_DECREF
(
rop_name
);
Box
*
rrtn
=
callattrInternal1
<
CXX
,
REWRITABLE
>
(
rhs
,
rop_name
,
CLASS_ONLY
,
NULL
,
ArgPassSpec
(
1
),
lhs
);
if
(
rrtn
!=
NULL
&&
rrtn
!=
NotImplemented
)
return
rrtn
;
...
...
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