Skip to content

Commit 73320d6

Browse files
committed
Force ensure_valid_encoding to be inlined.
1 parent 4ef7a45 commit 73320d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/json/ext/generator/generator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ static inline bool valid_json_string_p(VALUE str)
842842
return false;
843843
}
844844

845-
static inline VALUE ensure_valid_encoding(struct generate_json_data *data, VALUE str, bool as_json_called, bool is_key)
845+
ALWAYS_INLINE(static) VALUE ensure_valid_encoding(struct generate_json_data *data, VALUE str, bool as_json_called, bool is_key)
846846
{
847847
if (RB_LIKELY(valid_json_string_p(str))) {
848848
return str;

0 commit comments

Comments
 (0)