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
929ab934
Commit
929ab934
authored
May 05, 2009
by
Mark Dickinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #5933: Fix some gcc -Wextra warnings. Thanks Victor Stinner for
the patch.
parent
2c72420a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Modules/_ctypes/cfield.c
Modules/_ctypes/cfield.c
+2
-2
Modules/_randommodule.c
Modules/_randommodule.c
+1
-1
No files found.
Modules/_ctypes/cfield.c
View file @
929ab934
...
@@ -372,7 +372,7 @@ get_ulong(PyObject *v, unsigned long *p)
...
@@ -372,7 +372,7 @@ get_ulong(PyObject *v, unsigned long *p)
return
-
1
;
return
-
1
;
}
}
x
=
PyInt_AsUnsignedLongMask
(
v
);
x
=
PyInt_AsUnsignedLongMask
(
v
);
if
(
x
==
-
1
&&
PyErr_Occurred
())
if
(
x
==
(
unsigned
long
)
-
1
&&
PyErr_Occurred
())
return
-
1
;
return
-
1
;
*
p
=
x
;
*
p
=
x
;
return
0
;
return
0
;
...
@@ -410,7 +410,7 @@ get_ulonglong(PyObject *v, unsigned PY_LONG_LONG *p)
...
@@ -410,7 +410,7 @@ get_ulonglong(PyObject *v, unsigned PY_LONG_LONG *p)
return
-
1
;
return
-
1
;
}
}
x
=
PyInt_AsUnsignedLongLongMask
(
v
);
x
=
PyInt_AsUnsignedLongLongMask
(
v
);
if
(
x
==
-
1
&&
PyErr_Occurred
())
if
(
x
==
(
unsigned
PY_LONG_LONG
)
-
1
&&
PyErr_Occurred
())
return
-
1
;
return
-
1
;
*
p
=
x
;
*
p
=
x
;
return
0
;
return
0
;
...
...
Modules/_randommodule.c
View file @
929ab934
...
@@ -355,7 +355,7 @@ random_setstate(RandomObject *self, PyObject *state)
...
@@ -355,7 +355,7 @@ random_setstate(RandomObject *self, PyObject *state)
for
(
i
=
0
;
i
<
N
;
i
++
)
{
for
(
i
=
0
;
i
<
N
;
i
++
)
{
element
=
PyLong_AsUnsignedLong
(
PyTuple_GET_ITEM
(
state
,
i
));
element
=
PyLong_AsUnsignedLong
(
PyTuple_GET_ITEM
(
state
,
i
));
if
(
element
==
-
1
&&
PyErr_Occurred
())
if
(
element
==
(
unsigned
long
)
-
1
&&
PyErr_Occurred
())
return
NULL
;
return
NULL
;
self
->
state
[
i
]
=
element
&
0xffffffffUL
;
/* Make sure we get sane state */
self
->
state
[
i
]
=
element
&
0xffffffffUL
;
/* Make sure we get sane state */
}
}
...
...
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