Skip to content

Commit abcfbc0

Browse files
authored
Merge pull request #621 from ruby/pz-fix-max-nesting
Fix State#max_nesting=
2 parents 8713aa4 + 6679ceb commit abcfbc0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/json/ext/generator/generator.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,8 @@ static VALUE cState_max_nesting_set(VALUE self, VALUE depth)
11771177
{
11781178
GET_STATE(self);
11791179
Check_Type(depth, T_FIXNUM);
1180-
return state->max_nesting = FIX2LONG(depth);
1180+
state->max_nesting = FIX2LONG(depth);
1181+
return Qnil;
11811182
}
11821183

11831184
/*

0 commit comments

Comments
 (0)