summaryrefslogtreecommitdiff
path: root/Parser
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-09-06 13:47:26 -0700
committerBenjamin Peterson <benjamin@python.org>2016-09-06 13:47:26 -0700
commit82b75eb31160ec9c025e450ac9fa3300d560a245 (patch)
tree09af59ad4c2773eb8c1c8549aaeb6ed284fd9740 /Parser
parent76a2df1b6a3a821478824071fe9bb26717336846 (diff)
downloadcpython-82b75eb31160ec9c025e450ac9fa3300d560a245.tar.gz
replace Py_(u)intptr_t with the c99 standard types
Diffstat (limited to 'Parser')
-rw-r--r--Parser/grammar.c4
-rw-r--r--Parser/parsetok.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/Parser/grammar.c b/Parser/grammar.c
index e2cce28a8d..84223c66a8 100644
--- a/Parser/grammar.c
+++ b/Parser/grammar.c
@@ -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 */
diff --git a/Parser/parsetok.c b/Parser/parsetok.c
index ebe9495184..1f467d63c4 100644
--- a/Parser/parsetok.c
+++ b/Parser/parsetok.c
@@ -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;