mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* parse.y (magic_comment_encoding): remove meaningless null check.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d07b084239
commit
cf08661141
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Thu Jul 31 01:18:07 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||||
|
|
||||||
|
* parse.y (magic_comment_encoding): remove meaningless null check.
|
||||||
|
|
||||||
Thu Jul 31 01:09:28 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
Thu Jul 31 01:09:28 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||||
|
|
||||||
* ext/bigdecimal/bigdecimal.c (VpIsRoundMode): fix tautology
|
* ext/bigdecimal/bigdecimal.c (VpIsRoundMode): fix tautology
|
||||||
|
|
2
parse.y
2
parse.y
|
@ -5805,7 +5805,7 @@ typedef void (*rb_magic_comment_setter_t)(struct parser_params *parser, const ch
|
||||||
static void
|
static void
|
||||||
magic_comment_encoding(struct parser_params *parser, const char *name, const char *val)
|
magic_comment_encoding(struct parser_params *parser, const char *name, const char *val)
|
||||||
{
|
{
|
||||||
if (parser && parser->line_count != (parser->has_shebang ? 2 : 1))
|
if (parser->line_count != (parser->has_shebang ? 2 : 1))
|
||||||
return;
|
return;
|
||||||
parser_set_encode(parser, val);
|
parser_set_encode(parser, val);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue