Skip to content

Commit

Permalink
Fix a variable name
Browse files Browse the repository at this point in the history
The first argument of `WARN_SPACE_CHAR` is always `c2` in caller
side, so `c` equals to `c2`.
  • Loading branch information
yui-knk committed Apr 6, 2024
1 parent df8f1f7 commit 9776727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parse.y
Expand Up @@ -8129,7 +8129,7 @@ escaped_control_code(int c)
}

#define WARN_SPACE_CHAR(c, prefix) \
rb_warn1("invalid character syntax; use "prefix"\\%c", WARN_I(c2))
rb_warn1("invalid character syntax; use "prefix"\\%c", WARN_I(c))

static int
tokadd_codepoint(struct parser_params *p, rb_encoding **encp,
Expand Down

0 comments on commit 9776727

Please sign in to comment.