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
37e2b150
Commit
37e2b150
authored
Oct 31, 2013
by
Tim Golden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #19418 Fix some warnings on Win64
parent
706baa5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
Modules/audioop.c
Modules/audioop.c
+5
-2
No files found.
Modules/audioop.c
View file @
37e2b150
...
...
@@ -15,7 +15,8 @@ typedef short PyInt16;
#endif
static
const
int
maxvals
[]
=
{
0
,
0x7F
,
0x7FFF
,
0x7FFFFF
,
0x7FFFFFFF
};
static
const
int
minvals
[]
=
{
0
,
-
0x80
,
-
0x8000
,
-
0x800000
,
-
0x80000000
};
/* -1 trick is needed on Windows to support -0x80000000 without a warning */
static
const
int
minvals
[]
=
{
0
,
-
0x80
,
-
0x8000
,
-
0x800000
,
-
0x7FFFFFFF
-
1
};
static
const
unsigned
int
masks
[]
=
{
0
,
0xFF
,
0xFFFF
,
0xFFFFFF
,
0xFFFFFFFF
};
static
int
...
...
@@ -434,7 +435,9 @@ audioop_minmax(PyObject *self, PyObject *args)
signed
char
*
cp
;
Py_ssize_t
len
,
i
;
int
size
;
int
min
=
0x7fffffff
,
max
=
-
0x80000000
;
/* -1 trick below is needed on Windows to support -0x80000000 without
a warning */
int
min
=
0x7fffffff
,
max
=
-
0x7FFFFFFF
-
1
;
if
(
!
PyArg_ParseTuple
(
args
,
"s#i:minmax"
,
&
cp
,
&
len
,
&
size
))
return
NULL
;
...
...
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