mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Using SYMBOL_P macro
This commit is contained in:
parent
9583d2057d
commit
56065f0686
Notes:
git
2021-09-11 08:49:15 +09:00
3 changed files with 4 additions and 4 deletions
|
@ -2464,7 +2464,7 @@ econv_opts(VALUE opt, int ecflags)
|
|||
else if (v==sym_attr) {
|
||||
ecflags |= ECONV_XML_ATTR_CONTENT_DECORATOR|ECONV_XML_ATTR_QUOTE_DECORATOR|ECONV_UNDEF_HEX_CHARREF;
|
||||
}
|
||||
else if (RB_TYPE_P(v, T_SYMBOL)) {
|
||||
else if (SYMBOL_P(v)) {
|
||||
rb_raise(rb_eArgError, "unexpected value for xml option: %"PRIsVALUE, rb_sym2str(v));
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue