summaryrefslogtreecommitdiff
path: root/Parser/grammar.c
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
commitca4706399879b30e952c402637b4fc0d4d2e661c (patch)
tree72f97b545d4d31afd06a8874fcbb578cb178aa0d /Parser/grammar.c
parent3c397e4c39430000348f2f64d9e394bf1b61c509 (diff)
downloadcpython-git-ca4706399879b30e952c402637b4fc0d4d2e661c.tar.gz
replace Py_(u)intptr_t with the c99 standard types
Diffstat (limited to 'Parser/grammar.c')
-rw-r--r--Parser/grammar.c4
1 files changed, 2 insertions, 2 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 */