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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
f46120c0
Commit
f46120c0
authored
May 05, 2014
by
Lisandro Dalcin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '0.20.x'
parents
00a26462
9d8f23ec
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
Cython/Utility/ModuleSetupCode.c
Cython/Utility/ModuleSetupCode.c
+1
-1
Cython/Utility/Optimize.c
Cython/Utility/Optimize.c
+1
-1
Cython/Utility/StringTools.c
Cython/Utility/StringTools.c
+2
-2
Cython/Utility/TypeConversion.c
Cython/Utility/TypeConversion.c
+2
-2
No files found.
Cython/Utility/ModuleSetupCode.c
View file @
f46120c0
...
...
@@ -349,7 +349,7 @@ static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) {
if
(
__pyx_code_cache
.
count
==
__pyx_code_cache
.
max_count
)
{
int
new_max
=
__pyx_code_cache
.
max_count
+
64
;
entries
=
(
__Pyx_CodeObjectCacheEntry
*
)
PyMem_Realloc
(
__pyx_code_cache
.
entries
,
new_max
*
sizeof
(
__Pyx_CodeObjectCacheEntry
));
__pyx_code_cache
.
entries
,
(
size_t
)
new_max
*
sizeof
(
__Pyx_CodeObjectCacheEntry
));
if
(
unlikely
(
!
entries
))
{
return
;
}
...
...
Cython/Utility/Optimize.c
View file @
f46120c0
...
...
@@ -140,7 +140,7 @@ static PyObject* __Pyx_PyList_PopIndex(PyObject* L, Py_ssize_t ix) {
PyObject
*
v
=
PyList_GET_ITEM
(
L
,
cix
);
Py_SIZE
(
L
)
-=
1
;
size
-=
1
;
memmove
(
&
PyList_GET_ITEM
(
L
,
cix
),
&
PyList_GET_ITEM
(
L
,
cix
+
1
),
(
size
-
cix
)
*
sizeof
(
PyObject
*
));
memmove
(
&
PyList_GET_ITEM
(
L
,
cix
),
&
PyList_GET_ITEM
(
L
,
cix
+
1
),
(
size
_t
)(
size
-
cix
)
*
sizeof
(
PyObject
*
));
return
v
;
}
}
...
...
Cython/Utility/StringTools.c
View file @
f46120c0
...
...
@@ -190,7 +190,7 @@ static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int
}
else
if
(
length
==
1
)
{
goto
return_eq
;
}
else
{
int
result
=
memcmp
(
data1
,
data2
,
length
*
kind
);
int
result
=
memcmp
(
data1
,
data2
,
(
size_t
)(
length
*
kind
)
);
#if PY_MAJOR_VERSION < 3
Py_XDECREF
(
owned_ref
);
#endif
...
...
@@ -605,7 +605,7 @@ static int __Pyx_PyBytes_SingleTailmatch(PyObject* self, PyObject* arg, Py_ssize
}
if
(
start
+
sub_len
<=
end
)
retval
=
!
memcmp
(
self_ptr
+
start
,
sub_ptr
,
sub_len
);
retval
=
!
memcmp
(
self_ptr
+
start
,
sub_ptr
,
(
size_t
)
sub_len
);
else
retval
=
0
;
...
...
Cython/Utility/TypeConversion.c
View file @
f46120c0
...
...
@@ -43,7 +43,7 @@ static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u)
{
const
Py_UNICODE
*
u_end
=
u
;
while
(
*
u_end
++
)
;
return
u_end
-
u
-
1
;
return
(
size_t
)(
u_end
-
u
-
1
)
;
}
#else
#define __Pyx_Py_UNICODE_strlen Py_UNICODE_strlen
...
...
@@ -151,7 +151,7 @@ bad:
/* Type Conversion Functions */
static
CYTHON_INLINE
PyObject
*
__Pyx_PyUnicode_FromString
(
const
char
*
c_str
)
{
return
__Pyx_PyUnicode_FromStringAndSize
(
c_str
,
strlen
(
c_str
));
return
__Pyx_PyUnicode_FromStringAndSize
(
c_str
,
(
Py_ssize_t
)
strlen
(
c_str
));
}
static
CYTHON_INLINE
char
*
__Pyx_PyObject_AsString
(
PyObject
*
o
)
{
...
...
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