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
|
||||
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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue