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
84bb1cf9
Commit
84bb1cf9
authored
May 17, 2013
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compilater warnings on Windows 64-bit
parent
9ce59bbe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Python/getargs.c
Python/getargs.c
+3
-3
Python/traceback.c
Python/traceback.c
+1
-1
No files found.
Python/getargs.c
View file @
84bb1cf9
...
@@ -55,7 +55,7 @@ typedef struct {
...
@@ -55,7 +55,7 @@ typedef struct {
/* Forward */
/* Forward */
static
int
vgetargs1
(
PyObject
*
,
const
char
*
,
va_list
*
,
int
);
static
int
vgetargs1
(
PyObject
*
,
const
char
*
,
va_list
*
,
int
);
static
void
seterror
(
in
t
,
const
char
*
,
int
*
,
const
char
*
,
const
char
*
);
static
void
seterror
(
Py_ssize_
t
,
const
char
*
,
int
*
,
const
char
*
,
const
char
*
);
static
char
*
convertitem
(
PyObject
*
,
const
char
**
,
va_list
*
,
int
,
int
*
,
static
char
*
convertitem
(
PyObject
*
,
const
char
**
,
va_list
*
,
int
,
int
*
,
char
*
,
size_t
,
freelist_t
*
);
char
*
,
size_t
,
freelist_t
*
);
static
char
*
converttuple
(
PyObject
*
,
const
char
**
,
va_list
*
,
int
,
static
char
*
converttuple
(
PyObject
*
,
const
char
**
,
va_list
*
,
int
,
...
@@ -357,7 +357,7 @@ vgetargs1(PyObject *args, const char *format, va_list *p_va, int flags)
...
@@ -357,7 +357,7 @@ vgetargs1(PyObject *args, const char *format, va_list *p_va, int flags)
static
void
static
void
seterror
(
in
t
iarg
,
const
char
*
msg
,
int
*
levels
,
const
char
*
fname
,
seterror
(
Py_ssize_
t
iarg
,
const
char
*
msg
,
int
*
levels
,
const
char
*
fname
,
const
char
*
message
)
const
char
*
message
)
{
{
char
buf
[
512
];
char
buf
[
512
];
...
@@ -373,7 +373,7 @@ seterror(int iarg, const char *msg, int *levels, const char *fname,
...
@@ -373,7 +373,7 @@ seterror(int iarg, const char *msg, int *levels, const char *fname,
}
}
if
(
iarg
!=
0
)
{
if
(
iarg
!=
0
)
{
PyOS_snprintf
(
p
,
sizeof
(
buf
)
-
(
p
-
buf
),
PyOS_snprintf
(
p
,
sizeof
(
buf
)
-
(
p
-
buf
),
"argument %d"
,
iarg
);
"argument %
z
d"
,
iarg
);
i
=
0
;
i
=
0
;
p
+=
strlen
(
p
);
p
+=
strlen
(
p
);
while
(
levels
[
i
]
>
0
&&
i
<
32
&&
(
int
)(
p
-
buf
)
<
220
)
{
while
(
levels
[
i
]
>
0
&&
i
<
32
&&
(
int
)(
p
-
buf
)
<
220
)
{
...
...
Python/traceback.c
View file @
84bb1cf9
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
#define OFF(x) offsetof(PyTracebackObject, x)
#define OFF(x) offsetof(PyTracebackObject, x)
#define PUTS(fd, str) write(fd, str, strlen(str))
#define PUTS(fd, str) write(fd, str,
(int)
strlen(str))
#define MAX_STRING_LENGTH 500
#define MAX_STRING_LENGTH 500
#define MAX_FRAME_DEPTH 100
#define MAX_FRAME_DEPTH 100
#define MAX_NTHREADS 100
#define MAX_NTHREADS 100
...
...
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