diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-05-18 11:17:07 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-05-18 11:17:07 +0900 |
| commit | ec6c6df9953745d78577898dd62ab81f38e8dda6 (patch) | |
| tree | abca660b241516dbd4514c23c61957709a758998 /src | |
| parent | 5223c0a6ac03b67ebbeaf7d4d150d133cd0c0eca (diff) | |
| download | mruby-ec6c6df9953745d78577898dd62ab81f38e8dda6.tar.gz mruby-ec6c6df9953745d78577898dd62ab81f38e8dda6.zip | |
yywarn should use warn_buffer not error_buffer
Diffstat (limited to 'src')
| -rw-r--r-- | src/parse.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parse.y b/src/parse.y index 05b871b52..30df51284 100644 --- a/src/parse.y +++ b/src/parse.y @@ -2954,9 +2954,9 @@ yywarn(parser_state *p, const char *s) n = strlen(s); c = parser_palloc(p, n + 1); memcpy(c, s, n + 1); - p->error_buffer[p->nwarn].message = c; - p->error_buffer[p->nwarn].lineno = p->lineno; - p->error_buffer[p->nwarn].column = p->column; + p->warn_buffer[p->nwarn].message = c; + p->warn_buffer[p->nwarn].lineno = p->lineno; + p->warn_buffer[p->nwarn].column = p->column; } p->nwarn++; } |
