mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #9566: Fix compiler warning on Windows 64-bit
This commit is contained in:
parent
5a4367600f
commit
796977360f
1 changed files with 2 additions and 1 deletions
|
@ -660,7 +660,8 @@ translate_into_utf8(const char* str, const char* enc) {
|
|||
|
||||
static char *
|
||||
translate_newlines(const char *s, int exec_input, struct tok_state *tok) {
|
||||
int skip_next_lf = 0, needed_length = strlen(s) + 2, final_length;
|
||||
int skip_next_lf = 0;
|
||||
size_t needed_length = strlen(s) + 2, final_length;
|
||||
char *buf, *current;
|
||||
char c = '\0';
|
||||
buf = PyMem_MALLOC(needed_length);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue