summaryrefslogtreecommitdiff
path: root/yacc/reader.c
diff options
context:
space:
mode:
authorDemi Obenour <demiobenour@gmail.com>2017-02-11 15:43:12 -0500
committerDavid Allsopp <david.allsopp@metastack.com>2017-05-17 09:48:41 +0100
commit472ee2c0ff40ce1daa5afb27cf2077e2df83590e (patch)
treef05b5f778d3d195322fcb6a9c1dc0ceb5350e2c4 /yacc/reader.c
parent37e021f82f346e81334a683ede209565a6ad16ea (diff)
downloadocaml-472ee2c0ff40ce1daa5afb27cf2077e2df83590e.tar.gz
Fix build on MSVC
Diffstat (limited to 'yacc/reader.c')
-rw-r--r--yacc/reader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/yacc/reader.c b/yacc/reader.c
index e47b385626..0fb3a9cd46 100644
--- a/yacc/reader.c
+++ b/yacc/reader.c
@@ -1231,7 +1231,6 @@ void add_symbol(void)
void copy_action(void)
{
- push_stack('{');
register int c;
register int i, n;
int depth;
@@ -1242,6 +1241,7 @@ void copy_action(void)
char *a_line = dup_line();
char *a_cptr = a_line + (cptr - line);
+ push_stack('{');
if (last_was_action) syntax_error (lineno, line, cptr);
last_was_action = 1;