Skip to content

Commit 263cff6

Browse files
committed
Remove dead Check_Type after NUM2INT in HTML parser context options.
1 parent 9f17f7f commit 263cff6

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

ext/libxml/ruby_xml_html_parser_context.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,6 @@ static VALUE rxml_html_parser_context_options_set(VALUE self, VALUE options)
327327
{
328328
int xml_options = NUM2INT(options);
329329
htmlParserCtxtPtr ctxt;
330-
Check_Type(options, T_FIXNUM);
331330

332331
TypedData_Get_Struct(self, htmlParserCtxt, &rxml_html_parser_context_type, ctxt);
333332
htmlCtxtUseOptions(ctxt, xml_options);

0 commit comments

Comments
 (0)