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
47ba50be
Commit
47ba50be
authored
Mar 26, 2015
by
Marius Wachtler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix wrong arg order in sorted()
parent
85287cba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/runtime/builtin_modules/builtins.cpp
src/runtime/builtin_modules/builtins.cpp
+2
-2
No files found.
src/runtime/builtin_modules/builtins.cpp
View file @
47ba50be
...
@@ -450,7 +450,7 @@ Box* notimplementedRepr(Box* self) {
...
@@ -450,7 +450,7 @@ Box* notimplementedRepr(Box* self) {
return
boxStrConstant
(
"NotImplemented"
);
return
boxStrConstant
(
"NotImplemented"
);
}
}
Box
*
sorted
(
Box
*
obj
,
Box
*
key
,
Box
*
cmp
,
Box
**
args
)
{
Box
*
sorted
(
Box
*
obj
,
Box
*
cmp
,
Box
*
key
,
Box
**
args
)
{
Box
*
reverse
=
args
[
0
];
Box
*
reverse
=
args
[
0
];
BoxedList
*
rtn
=
new
BoxedList
();
BoxedList
*
rtn
=
new
BoxedList
();
...
@@ -458,7 +458,7 @@ Box* sorted(Box* obj, Box* key, Box* cmp, Box** args) {
...
@@ -458,7 +458,7 @@ Box* sorted(Box* obj, Box* key, Box* cmp, Box** args) {
listAppendInternal
(
rtn
,
e
);
listAppendInternal
(
rtn
,
e
);
}
}
listSort
(
rtn
,
key
,
cmp
,
reverse
);
listSort
(
rtn
,
cmp
,
key
,
reverse
);
return
rtn
;
return
rtn
;
}
}
...
...
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