[ruby/json] Fix State#max_nesting=
Returning state->max_nesting is not valid because it's not a Ruby object. https://github.com/ruby/json/commit/6679ceb
This commit is contained in:
parent
c6828a10ff
commit
e4330536d2
@ -1164,7 +1164,8 @@ static VALUE cState_max_nesting_set(VALUE self, VALUE depth)
|
||||
{
|
||||
GET_STATE(self);
|
||||
Check_Type(depth, T_FIXNUM);
|
||||
return state->max_nesting = FIX2LONG(depth);
|
||||
state->max_nesting = FIX2LONG(depth);
|
||||
return Qnil;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user