]> granicus.if.org Git - python/commitdiff
Issue #9566: Fix compiler warning on Windows 64-bit
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 4 Jun 2013 22:44:00 +0000 (00:44 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 4 Jun 2013 22:44:00 +0000 (00:44 +0200)
Parser/tokenizer.c

index c2c182ce195837000350cb766293f1ed042cc2ec..5480278feacb83b7ac178ffb2f6e37fcf5c2623b 100644 (file)
@@ -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);