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
68581901
Commit
68581901
authored
May 20, 2013
by
Josh Ayers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix several MS compiler warnings.
parent
1100f5d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Cython/Utility/MemoryView.pyx
Cython/Utility/MemoryView.pyx
+2
-2
Cython/Utility/MemoryView_C.c
Cython/Utility/MemoryView_C.c
+2
-2
No files found.
Cython/Utility/MemoryView.pyx
View file @
68581901
...
@@ -117,7 +117,7 @@ cdef class array:
...
@@ -117,7 +117,7 @@ cdef class array:
cdef
Py_ssize_t
i
cdef
Py_ssize_t
i
cdef
PyObject
**
p
cdef
PyObject
**
p
self
.
ndim
=
len
(
shape
)
self
.
ndim
=
<
int
>
len
(
shape
)
self
.
itemsize
=
itemsize
self
.
itemsize
=
itemsize
if
not
self
.
ndim
:
if
not
self
.
ndim
:
...
@@ -870,7 +870,7 @@ cdef int slice_memviewslice(
...
@@ -870,7 +870,7 @@ cdef int slice_memviewslice(
#
#
@
cname
(
'__pyx_pybuffer_index'
)
@
cname
(
'__pyx_pybuffer_index'
)
cdef
char
*
pybuffer_index
(
Py_buffer
*
view
,
char
*
bufp
,
Py_ssize_t
index
,
cdef
char
*
pybuffer_index
(
Py_buffer
*
view
,
char
*
bufp
,
Py_ssize_t
index
,
in
t
dim
)
except
NULL
:
Py_ssize_
t
dim
)
except
NULL
:
cdef
Py_ssize_t
shape
,
stride
,
suboffset
=
-
1
cdef
Py_ssize_t
shape
,
stride
,
suboffset
=
-
1
cdef
Py_ssize_t
itemsize
=
view
.
itemsize
cdef
Py_ssize_t
itemsize
=
view
.
itemsize
cdef
char
*
resultp
cdef
char
*
resultp
...
...
Cython/Utility/MemoryView_C.c
View file @
68581901
...
@@ -25,7 +25,7 @@ typedef struct {
...
@@ -25,7 +25,7 @@ typedef struct {
// libatomic + autotools-like distutils support? Such a pain...
// libatomic + autotools-like distutils support? Such a pain...
#if CYTHON_ATOMICS && __GNUC__ >= 4 && (__GNUC_MINOR__ > 1 || \
#if CYTHON_ATOMICS && __GNUC__ >= 4 && (__GNUC_MINOR__ > 1 || \
(__GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL >= 2)) && \
(__GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL >= 2)) && \
!defined(__i386__)
!defined(__i386__)
/* gcc >= 4.1.2 */
/* gcc >= 4.1.2 */
#define __pyx_atomic_incr_aligned(value, lock) __sync_fetch_and_add(value, 1)
#define __pyx_atomic_incr_aligned(value, lock) __sync_fetch_and_add(value, 1)
#define __pyx_atomic_decr_aligned(value, lock) __sync_fetch_and_sub(value, 1)
#define __pyx_atomic_decr_aligned(value, lock) __sync_fetch_and_sub(value, 1)
...
@@ -580,7 +580,7 @@ __pyx_memoryview_copy_new_contig(const __Pyx_memviewslice *from_mvs,
...
@@ -580,7 +580,7 @@ __pyx_memoryview_copy_new_contig(const __Pyx_memviewslice *from_mvs,
for
(
i
=
0
;
i
<
ndim
;
i
++
)
{
for
(
i
=
0
;
i
<
ndim
;
i
++
)
{
temp_int
=
PyInt_From
Long
(
from_mvs
->
shape
[
i
]);
temp_int
=
PyInt_From
Ssize_t
(
from_mvs
->
shape
[
i
]);
if
(
unlikely
(
!
temp_int
))
{
if
(
unlikely
(
!
temp_int
))
{
goto
fail
;
goto
fail
;
}
else
{
}
else
{
...
...
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