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
a439191e
Commit
a439191e
authored
Sep 06, 2016
by
Steve Dower
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some warnings from MSVC
parent
35b40c65
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
7 deletions
+4
-7
Modules/_ctypes/_ctypes.c
Modules/_ctypes/_ctypes.c
+1
-1
Modules/_decimal/libmpdec/vccompat.h
Modules/_decimal/libmpdec/vccompat.h
+0
-4
Modules/audioop.c
Modules/audioop.c
+2
-1
Programs/_freeze_importlib.c
Programs/_freeze_importlib.c
+1
-1
No files found.
Modules/_ctypes/_ctypes.c
View file @
a439191e
...
...
@@ -3067,7 +3067,7 @@ static PyGetSetDef PyCFuncPtr_getsets[] = {
};
#ifdef MS_WIN32
static
PPROC
FindAddress
(
void
*
handle
,
char
*
name
,
PyObject
*
type
)
static
PPROC
FindAddress
(
void
*
handle
,
c
onst
c
har
*
name
,
PyObject
*
type
)
{
#ifdef MS_WIN64
/* win64 has no stdcall calling conv, so it should
...
...
Modules/_decimal/libmpdec/vccompat.h
View file @
a439191e
...
...
@@ -48,10 +48,6 @@
#undef strtoll
#define strtoll _strtoi64
#define strdup _strdup
#define PRIi64 "I64i"
#define PRIu64 "I64u"
#define PRIi32 "I32i"
#define PRIu32 "I32u"
#endif
...
...
Modules/audioop.c
View file @
a439191e
...
...
@@ -4,6 +4,7 @@
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#include <inttypes.h>
typedef
short
PyInt16
;
...
...
@@ -448,7 +449,7 @@ audioop_max_impl(PyObject *module, Py_buffer *fragment, int width)
int
val
=
GETRAWSAMPLE
(
width
,
fragment
->
buf
,
i
);
/* Cast to unsigned before negating. Unsigned overflow is well-
defined, but signed overflow is not. */
if
(
val
<
0
)
absval
=
-
(
unsigned
in
t
)
val
;
if
(
val
<
0
)
absval
=
(
unsigned
int
)
-
(
int64_
t
)
val
;
else
absval
=
val
;
if
(
absval
>
max
)
max
=
absval
;
}
...
...
Programs/_freeze_importlib.c
View file @
a439191e
...
...
@@ -58,7 +58,7 @@ main(int argc, char *argv[])
fprintf
(
stderr
,
"cannot fstat '%s'
\n
"
,
inpath
);
goto
error
;
}
text_size
=
status
.
st_size
;
text_size
=
(
size_t
)
status
.
st_size
;
text
=
(
char
*
)
malloc
(
text_size
+
1
);
if
(
text
==
NULL
)
{
fprintf
(
stderr
,
"could not allocate %ld bytes
\n
"
,
(
long
)
text_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