commit | cad876d54273e6f3f9cb3ff575da1c45ef5410c6 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Mon Nov 18 01:09:51 2013 +0100 |
committer | Victor Stinner <victor.stinner@gmail.com> | Mon Nov 18 01:09:51 2013 +0100 |
tree | f87f12c9a5e0694c9e970583b53dd6b41976ec3f | |
parent | 3a8a333942512657195679a49a91a1846f740928 [diff] [blame] |
Fix a compiler warning on Windows 64-bit in parsetok.c Python parser doesn't support lines longer than INT_MAX bytes yet
diff --git a/Parser/parsetok.c b/Parser/parsetok.c index b4957b8..629dee5 100644 --- a/Parser/parsetok.c +++ b/Parser/parsetok.c
@@ -254,7 +254,8 @@ } #endif if (a >= tok->line_start) - col_offset = a - tok->line_start; + col_offset = Py_SAFE_DOWNCAST(a - tok->line_start, + Py_intptr_t, int); else col_offset = -1;