diff options
author | Inada Naoki <songofacandy@gmail.com> | 2019-04-23 11:39:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-23 11:39:37 (GMT) |
commit | 09415ff0ebbbe97c8cd08ac1f94673d7a49c8018 (patch) | |
tree | c49ee25cd8762638867af92177cb90bced0ec4b4 /Parser/grammar1.c | |
parent | 574913479f26b5ff48827861bce68281be01d16e (diff) | |
download | cpython-09415ff0ebbbe97c8cd08ac1f94673d7a49c8018.zip cpython-09415ff0ebbbe97c8cd08ac1f94673d7a49c8018.tar.gz cpython-09415ff0ebbbe97c8cd08ac1f94673d7a49c8018.tar.bz2 |
fix warnings by adding more const (GH-12924)
Diffstat (limited to 'Parser/grammar1.c')
-rw-r--r-- | Parser/grammar1.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Parser/grammar1.c b/Parser/grammar1.c index fec6d9e..e0b8fbb 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; } |