summaryrefslogtreecommitdiff
path: root/Parser/grammar1.c
diff options
context:
space:
mode:
Diffstat (limited to 'Parser/grammar1.c')
-rw-r--r--Parser/grammar1.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Parser/grammar1.c b/Parser/grammar1.c
index fec6d9ec0e..e0b8fbb8b8 100644
--- a/Parser/grammar1.c
+++ b/Parser/grammar1.c
@@ -7,12 +7,11 @@
/* Return the DFA for the given type */
-dfa *
+const dfa *
PyGrammar_FindDFA(grammar *g, int type)
{
- dfa *d;
/* Massive speed-up */
- d = &g->g_dfa[type - NT_OFFSET];
+ const dfa *d = &g->g_dfa[type - NT_OFFSET];
assert(d->d_type == type);
return d;
}