Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ext/json/ext/generator/generator.c
Original file line number Diff line number Diff line change
Expand Up @@ -1848,6 +1848,8 @@ static VALUE cState_allow_duplicate_key_p(VALUE self)
return Qnil;
case JSON_RAISE:
return Qfalse;
default:
return Qnil;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hum, this should be unreachable. Let me see if I can mark it as such.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't sure if C extensions have access to rb_bug or portable assert implementations. That's why I didn't use one, but yeah let's do so if you have an idea.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't sure if C extensions have access

They do, but not sure how much of it really is intended to be exposed. So I merged a slightly modified version of your patch: d3f7f04

}
}

Expand Down
Loading