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
Show 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,6 +187,7 @@ cdef extern from "numpy/arrayobject.h":
...
@@ -187,6 +187,7 @@ cdef extern from "numpy/arrayobject.h":
def
__releasebuffer__
(
ndarray
self
,
Py_buffer
*
info
):
def
__releasebuffer__
(
ndarray
self
,
Py_buffer
*
info
):
# This can not be called unless format needs to be freed (as
# This can not be called unless format needs to be freed (as
# obj is set to NULL in those case)
# obj is set to NULL in those case)
if
PyArray_HASFIELDS
(
self
):
stdlib
.
free
(
info
.
format
)
stdlib
.
free
(
info
.
format
)
if
sizeof
(
npy_intp
)
!=
sizeof
(
Py_ssize_t
):
if
sizeof
(
npy_intp
)
!=
sizeof
(
Py_ssize_t
):
stdlib
.
free
(
info
.
strides
)
stdlib
.
free
(
info
.
strides
)
...
@@ -201,7 +202,7 @@ cdef extern from "numpy/arrayobject.h":
...
@@ -201,7 +202,7 @@ cdef extern from "numpy/arrayobject.h":
cdef
npy_intp
*
PyArray_DIMS
(
ndarray
arr
)
cdef
npy_intp
*
PyArray_DIMS
(
ndarray
arr
)
cdef
int
PyArray_ITEMSIZE
(
ndarray
arr
)
cdef
int
PyArray_ITEMSIZE
(
ndarray
arr
)
cdef
int
PyArray_CHKFLAGS
(
ndarray
arr
,
int
flags
)
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
)
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