diff options
author | Marc-Andre Lafortune <[email protected]> | 2020-07-21 23:47:23 -0400 |
---|---|---|
committer | Marc-Andre Lafortune <[email protected]> | 2020-07-30 10:07:06 -0400 |
commit | 352895b7511d26b40023549b6eb6e06a243c9bbd (patch) | |
tree | 224168edbc077f8a3677d562e332597a539fdc6c /ext/racc/cparse/cparse.c | |
parent | 1b1ea7b3bc9484e6e59d716fce2965a2f39d1e3d (diff) |
[ruby/racc] Return `nil` for all syntax errors
https://github.com/ruby/racc/commit/51817ce0f6
Diffstat (limited to 'ext/racc/cparse/cparse.c')
-rw-r--r-- | ext/racc/cparse/cparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/racc/cparse/cparse.c b/ext/racc/cparse/cparse.c index ca74b80000..4d77bbf298 100644 --- a/ext/racc/cparse/cparse.c +++ b/ext/racc/cparse/cparse.c @@ -605,7 +605,7 @@ parse_main(struct cparse_params *v, VALUE tok, VALUE val, int resume) user_yyerror: if (v->errstatus == 3) { if (v->t == vFINAL_TOKEN) { - v->retval = Qfalse; + v->retval = Qnil; v->fin = CP_FIN_EOT; return; } |