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
05e744dc
Commit
05e744dc
authored
Nov 10, 2008
by
Dag Sverre Seljebotn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix segfault problem with recent numpy.pxd/Python 2.4 patch
parent
28baecd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Cython/Includes/numpy.pxd
Cython/Includes/numpy.pxd
+3
-2
No files found.
Cython/Includes/numpy.pxd
View file @
05e744dc
...
...
@@ -187,7 +187,8 @@ cdef extern from "numpy/arrayobject.h":
def
__releasebuffer__
(
ndarray
self
,
Py_buffer
*
info
):
# This can not be called unless format needs to be freed (as
# obj is set to NULL in those case)
stdlib
.
free
(
info
.
format
)
if
PyArray_HASFIELDS
(
self
):
stdlib
.
free
(
info
.
format
)
if
sizeof
(
npy_intp
)
!=
sizeof
(
Py_ssize_t
):
stdlib
.
free
(
info
.
strides
)
# info.shape was stored after info.strides in the same block
...
...
@@ -201,7 +202,7 @@ cdef extern from "numpy/arrayobject.h":
cdef
npy_intp
*
PyArray_DIMS
(
ndarray
arr
)
cdef
int
PyArray_ITEMSIZE
(
ndarray
arr
)
cdef
int
PyArray_CHKFLAGS
(
ndarray
arr
,
int
flags
)
cdef
int
PyArray_HASFIELDS
(
ndarray
arr
,
int
flags
)
cdef
int
PyArray_HASFIELDS
(
ndarray
arr
)
cdef
int
PyDataType_HASFIELDS
(
dtype
obj
)
...
...
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