diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-06-04 22:44:00 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-06-04 22:44:00 (GMT) |
commit | 796977360f4250c5a0e90f5ec230ac0af36d3c62 (patch) | |
tree | 60645803883c43f5120d4233f69668d4e707a34b /Parser/tokenizer.c | |
parent | 5a4367600f865f57ccfc123d8eec4f7ca543ef05 (diff) | |
download | cpython-796977360f4250c5a0e90f5ec230ac0af36d3c62.zip cpython-796977360f4250c5a0e90f5ec230ac0af36d3c62.tar.gz cpython-796977360f4250c5a0e90f5ec230ac0af36d3c62.tar.bz2 |
Issue #9566: Fix compiler warning on Windows 64-bit
Diffstat (limited to 'Parser/tokenizer.c')
-rw-r--r-- | Parser/tokenizer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c index c2c182c..5480278 100644 --- a/Parser/tokenizer.c +++ b/Parser/tokenizer.c @@ -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); |