Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
bcfcccaf
Commit
bcfcccaf
authored
Mar 22, 2006
by
Thomas Heller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some int/Py_ssize_t issues which led to compiler warnings
on 64-bit platforms.
parent
59feb6f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Modules/_ctypes/_ctypes.c
Modules/_ctypes/_ctypes.c
+6
-6
No files found.
Modules/_ctypes/_ctypes.c
View file @
bcfcccaf
...
...
@@ -3499,7 +3499,7 @@ Array_init(CDataObject *self, PyObject *args, PyObject *kw)
}
static
PyObject
*
Array_item
(
PyObject
*
_self
,
in
t
index
)
Array_item
(
PyObject
*
_self
,
Py_ssize_
t
index
)
{
CDataObject
*
self
=
(
CDataObject
*
)
_self
;
int
offset
,
size
;
...
...
@@ -3567,7 +3567,7 @@ Array_slice(PyObject *_self, Py_ssize_t ilow, Py_ssize_t ihigh)
}
static
int
Array_ass_item
(
PyObject
*
_self
,
in
t
index
,
PyObject
*
value
)
Array_ass_item
(
PyObject
*
_self
,
Py_ssize_
t
index
,
PyObject
*
value
)
{
CDataObject
*
self
=
(
CDataObject
*
)
_self
;
int
size
,
offset
;
...
...
@@ -3595,7 +3595,7 @@ Array_ass_item(PyObject *_self, int index, PyObject *value)
}
static
int
Array_ass_slice
(
PyObject
*
_self
,
int
ilow
,
in
t
ihigh
,
PyObject
*
value
)
Array_ass_slice
(
PyObject
*
_self
,
Py_ssize_t
ilow
,
Py_ssize_
t
ihigh
,
PyObject
*
value
)
{
CDataObject
*
self
=
(
CDataObject
*
)
_self
;
int
i
,
len
;
...
...
@@ -3636,7 +3636,7 @@ Array_ass_slice(PyObject *_self, int ilow, int ihigh, PyObject *value)
return
0
;
}
static
in
t
static
Py_ssize_
t
Array_length
(
PyObject
*
_self
)
{
CDataObject
*
self
=
(
CDataObject
*
)
_self
;
...
...
@@ -4002,7 +4002,7 @@ static PyTypeObject Simple_Type = {
Pointer_Type
*/
static
PyObject
*
Pointer_item
(
PyObject
*
_self
,
in
t
index
)
Pointer_item
(
PyObject
*
_self
,
Py_ssize_
t
index
)
{
CDataObject
*
self
=
(
CDataObject
*
)
_self
;
int
size
,
offset
;
...
...
@@ -4030,7 +4030,7 @@ Pointer_item(PyObject *_self, int index)
}
static
int
Pointer_ass_item
(
PyObject
*
_self
,
in
t
index
,
PyObject
*
value
)
Pointer_ass_item
(
PyObject
*
_self
,
Py_ssize_
t
index
,
PyObject
*
value
)
{
CDataObject
*
self
=
(
CDataObject
*
)
_self
;
int
size
;
...
...
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