make pgen.c C89 compliant again (GH-7870)

This commit is contained in:
Benjamin Peterson 2018-06-22 21:51:44 -07:00 committed by GitHub
parent 482fac7499
commit 9ee9efa9fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -120,7 +120,8 @@ newnfagrammar(void)
static void
freenfagrammar(nfagrammar *gr)
{
for (int i = 0; i < gr->gr_nnfas; i++) {
int i;
for (i = 0; i < gr->gr_nnfas; i++) {
PyObject_FREE(gr->gr_nfa[i]->nf_state);
}
PyObject_FREE(gr->gr_nfa);