[Python-checkins] cpython: Issue #9566: Fix compiler warning on Windows 64-bit

victor.stinner python-checkins at python.org
Wed Jun 5 01:18:32 CEST 2013


http://hg.python.org/cpython/rev/36c35a1893fe
changeset:   84033:36c35a1893fe
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Wed Jun 05 00:44:00 2013 +0200
summary:
  Issue #9566: Fix compiler warning on Windows 64-bit

files:
  Parser/tokenizer.c |  3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c
--- a/Parser/tokenizer.c
+++ b/Parser/tokenizer.c
@@ -660,7 +660,8 @@
 
 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);

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list