mirror of
https://github.com/python/cpython
synced 2024-09-15 22:38:37 +00:00
Fix a compiler warning on Windows 64-bit in parsetok.c
Python parser doesn't support lines longer than INT_MAX bytes yet
This commit is contained in:
parent
3a8a333942
commit
cad876d542
|
@ -254,7 +254,8 @@ parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret,
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (a >= tok->line_start)
|
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
|
else
|
||||||
col_offset = -1;
|
col_offset = -1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue