mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
yywarn should use warn_buffer not error_buffer
This commit is contained in:
+3
-3
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user