diff options
| author | Carson McDonald <[email protected]> | 2013-01-30 20:53:39 -0500 |
|---|---|---|
| committer | Carson McDonald <[email protected]> | 2013-02-07 07:27:59 -0500 |
| commit | 2ce3b31a8a894e26bd15cf21cec3d171503fc688 (patch) | |
| tree | 3f707f89ce2ad884f79acbd6ca039b668e63c1da /src | |
| parent | d3c77559754a196476d1c9a5bdd30a8559affe30 (diff) | |
| download | mruby-2ce3b31a8a894e26bd15cf21cec3d171503fc688.tar.gz mruby-2ce3b31a8a894e26bd15cf21cec3d171503fc688.zip | |
Fix incorrect index use. nerr was being used for warning buffer check.
Diffstat (limited to 'src')
| -rw-r--r-- | src/parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse.y b/src/parse.y index 9ee9c9bec..91fb1a8e8 100644 --- a/src/parse.y +++ b/src/parse.y @@ -3000,7 +3000,7 @@ yywarn(parser_state *p, const char *s) } #endif } - else if (p->nerr < sizeof(p->warn_buffer) / sizeof(p->warn_buffer[0])) { + else if (p->nwarn < sizeof(p->warn_buffer) / sizeof(p->warn_buffer[0])) { n = strlen(s); c = (char *)parser_palloc(p, n + 1); memcpy(c, s, n + 1); |
