зеркало из https://github.com/github/ruby.git
[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:
Родитель
c6828a10ff
Коммит
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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Загрузка…
Ссылка в новой задаче