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
d2c8d442
Commit
d2c8d442
authored
Aug 11, 2009
by
Kurt Smith
Committed by
Mark Florisson
Sep 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix in BufferCopyContents code.
parent
c94c6153
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Cython/Compiler/MemoryView.py
Cython/Compiler/MemoryView.py
+2
-1
No files found.
Cython/Compiler/MemoryView.py
View file @
d2c8d442
...
@@ -650,6 +650,7 @@ static int __Pyx_ValidateAndInit_memviewslice(
...
@@ -650,6 +650,7 @@ static int __Pyx_ValidateAndInit_memviewslice(
for(i=0; i<ndim; i++) {
for(i=0; i<ndim; i++) {
spec = axes_specs[i];
spec = axes_specs[i];
if (spec & __Pyx_MEMVIEW_CONTIG) {
if (spec & __Pyx_MEMVIEW_CONTIG) {
if (buf->strides[i] != buf->itemsize) {
if (buf->strides[i] != buf->itemsize) {
PyErr_SetString(PyExc_ValueError,
PyErr_SetString(PyExc_ValueError,
...
@@ -659,7 +660,7 @@ static int __Pyx_ValidateAndInit_memviewslice(
...
@@ -659,7 +660,7 @@ static int __Pyx_ValidateAndInit_memviewslice(
}
}
if (spec & (__Pyx_MEMVIEW_STRIDED | __Pyx_MEMVIEW_FOLLOW)) {
if (spec & (__Pyx_MEMVIEW_STRIDED | __Pyx_MEMVIEW_FOLLOW)) {
if (buf->strides[i] <
=
buf->itemsize) {
if (buf->strides[i] < buf->itemsize) {
PyErr_SetString(PyExc_ValueError,
PyErr_SetString(PyExc_ValueError,
"Buffer and memoryview are not contiguous in the same dimension.");
"Buffer and memoryview are not contiguous in the same dimension.");
goto fail;
goto fail;
...
...
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