diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-11-18 00:09:51 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-11-18 00:09:51 (GMT) |
commit | cad876d54273e6f3f9cb3ff575da1c45ef5410c6 (patch) | |
tree | f87f12c9a5e0694c9e970583b53dd6b41976ec3f /Parser/parsetok.c | |
parent | 3a8a333942512657195679a49a91a1846f740928 (diff) | |
download | cpython-cad876d54273e6f3f9cb3ff575da1c45ef5410c6.zip cpython-cad876d54273e6f3f9cb3ff575da1c45ef5410c6.tar.gz cpython-cad876d54273e6f3f9cb3ff575da1c45ef5410c6.tar.bz2 |
Fix a compiler warning on Windows 64-bit in parsetok.c
Python parser doesn't support lines longer than INT_MAX bytes yet
Diffstat (limited to 'Parser/parsetok.c')
-rw-r--r-- | Parser/parsetok.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret, } #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; |