mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
replace Py_(u)intptr_t with the c99 standard types
This commit is contained in:
parent
3c397e4c39
commit
ca47063998
21 changed files with 86 additions and 86 deletions
|
@ -63,7 +63,7 @@ addstate(dfa *d)
|
|||
s->s_upper = 0;
|
||||
s->s_accel = NULL;
|
||||
s->s_accept = 0;
|
||||
return Py_SAFE_DOWNCAST(s - d->d_state, Py_intptr_t, int);
|
||||
return Py_SAFE_DOWNCAST(s - d->d_state, intptr_t, int);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -105,7 +105,7 @@ addlabel(labellist *ll, int type, const char *str)
|
|||
if (Py_DebugFlag)
|
||||
printf("Label @ %8p, %d: %s\n", ll, ll->ll_nlabels,
|
||||
PyGrammar_LabelRepr(lb));
|
||||
return Py_SAFE_DOWNCAST(lb - ll->ll_label, Py_intptr_t, int);
|
||||
return Py_SAFE_DOWNCAST(lb - ll->ll_label, intptr_t, int);
|
||||
}
|
||||
|
||||
/* Same, but rather dies than adds */
|
||||
|
|
|
@ -255,7 +255,7 @@ parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret,
|
|||
#endif
|
||||
if (a >= tok->line_start)
|
||||
col_offset = Py_SAFE_DOWNCAST(a - tok->line_start,
|
||||
Py_intptr_t, int);
|
||||
intptr_t, int);
|
||||
else
|
||||
col_offset = -1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue