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
ddb2721f
Commit
ddb2721f
authored
Mar 18, 2016
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
was not in fact tested
parent
3c3c4bb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/runtime/dict.cpp
src/runtime/dict.cpp
+2
-1
No files found.
src/runtime/dict.cpp
View file @
ddb2721f
...
...
@@ -458,7 +458,6 @@ static int dict_ass_sub(PyDictObject* mp, PyObject* v, PyObject* w) noexcept {
extern
"C"
int
PyDict_DelItem
(
PyObject
*
op
,
PyObject
*
key
)
noexcept
{
if
(
PyDict_Check
(
op
))
{
BoxedDict
*
self
=
static_cast
<
BoxedDict
*>
(
op
);
assert
(
0
&&
"untested"
);
decltype
(
self
->
d
)
::
iterator
it
;
try
{
it
=
self
->
d
.
find
(
key
);
...
...
@@ -472,8 +471,10 @@ extern "C" int PyDict_DelItem(PyObject* op, PyObject* key) noexcept {
}
Box
*
v
=
it
->
second
;
Box
*
k
=
it
->
first
.
value
;
self
->
d
.
erase
(
it
);
Py_DECREF
(
v
);
Py_DECREF
(
k
);
return
0
;
}
...
...
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