Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
41fe46c7
Commit
41fe46c7
authored
Apr 11, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor pypy code improvements
parent
1ace3e16
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Cython/Utility/Builtins.c
Cython/Utility/Builtins.c
+1
-1
Cython/Utility/StringTools.c
Cython/Utility/StringTools.c
+2
-2
No files found.
Cython/Utility/Builtins.c
View file @
41fe46c7
...
...
@@ -29,7 +29,7 @@ static PyObject* __Pyx_Globals(void) {
goto
bad
;
for
(
i
=
PyList_GET_SIZE
(
names
)
-
1
;
i
>=
0
;
i
--
)
{
#if CYTHON_COMPILING_IN_PYPY
PyObject
*
name
=
PySequence_
GetItem
(
names
,
i
);
PyObject
*
name
=
PySequence_
ITEM
(
names
,
i
);
if
(
!
name
)
goto
bad
;
#else
...
...
Cython/Utility/StringTools.c
View file @
41fe46c7
...
...
@@ -533,7 +533,7 @@ static int __Pyx_PyUnicode_Tailmatch(PyObject* s, PyObject* substr,
result
=
PyUnicode_Tailmatch
(
s
,
PyTuple_GET_ITEM
(
substr
,
i
),
start
,
end
,
direction
);
#else
PyObject
*
sub
=
PySequence_
GetItem
(
substr
,
i
);
PyObject
*
sub
=
PySequence_
ITEM
(
substr
,
i
);
if
(
unlikely
(
!
sub
))
return
-
1
;
result
=
PyUnicode_Tailmatch
(
s
,
sub
,
start
,
end
,
direction
);
Py_DECREF
(
sub
);
...
...
@@ -618,7 +618,7 @@ static int __Pyx_PyBytes_Tailmatch(PyObject* self, PyObject* substr, Py_ssize_t
result
=
__Pyx_PyBytes_SingleTailmatch
(
self
,
PyTuple_GET_ITEM
(
substr
,
i
),
start
,
end
,
direction
);
#else
PyObject
*
sub
=
PySequence_
GetItem
(
substr
,
i
);
PyObject
*
sub
=
PySequence_
ITEM
(
substr
,
i
);
if
(
unlikely
(
!
sub
))
return
-
1
;
result
=
__Pyx_PyBytes_SingleTailmatch
(
self
,
sub
,
start
,
end
,
direction
);
Py_DECREF
(
sub
);
...
...
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